public Task <IReadOnlyList <Order> > GetAllAsync()
 {
     return(_cacheProvider.GetAsync(nameof(OrdersSnapshotReaderService),
                                    async() => new CachableResult <IReadOnlyList <Order> >(
                                        (IReadOnlyList <Order>) await _blobRepository.ReadAsync <List <Order> >(
                                            LykkeConstants.StateBlobContainer, BlobName) ?? Array.Empty <Order>(),
                                        CachingParameters.FromSeconds(10))));
 }
 private Task <Dictionary <string, OrderBook> > GetOrderBookStateAsync()
 {
     return(_cacheProvider.GetAsync(nameof(OrderBookSnapshotReaderService),
                                    async() =>
     {
         var orderbookState = await _blobRepository.ReadAsync <Dictionary <string, OrderBook> >(
             LykkeConstants.StateBlobContainer, BlobName) ??
                              new Dictionary <string, OrderBook>();
         return new CachableResult <Dictionary <string, OrderBook> >(orderbookState,
                                                                     CachingParameters.FromSeconds(10));
     }));
 }