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