Beispiel #1
0
 public ImmutableArray <Order> GetAll()
 {
     using (_contextFactory.GetReadSyncContext($"{nameof(OrdersCache)}.{nameof(GetAll)}"))
         return(ActiveOrders.GetAllOrders()
                .Union(WaitingForExecutionOrders.GetAllOrders())
                .Union(ClosingOrders.GetAllOrders()).ToImmutableArray());
 }
Beispiel #2
0
 public ImmutableArray <Order> GetPending()
 {
     return(WaitingForExecutionOrders.GetAllOrders().ToImmutableArray());
 }