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