Enumerate All Orders Associated with a FIX Session

CopyEnumerate All Orders Associated with a FIX Session
// Prerequisites: Variable "session" of type FIXSession.
FIXSessionOrderManager sessionOM = FIXOrderManager.GetSessionOrderManager(session);
foreach (FIXSessionOrderList curOrderList in sessionOM.SessionOrderLists)
{
    int curIndex = 0;
    while (curIndex < curOrderList.RegularOrders.Count)
    {
        FIXRegularOrder curRegularOrder = curOrderList.RegularOrders[curIndex];
        // TODO: Your own business logic.
    }
    // List and cross orders can be enumerated in the same way
}