예제 #1
0
        public override async Task Execute()
        {
            var data = _exchangeCache.GetAll();

            if (data == null || data.Count == 0)
            {
                return;
            }

            await _genericBlobRepository.Write(Constants.BlobContainerName, Constants.BlobExchangesCache, data);

            await _log.WriteInfoAsync(nameof(DataSavingHandler), nameof(Execute),
                                      $"Exchange cache saved to blob: {string.Join("; ", data)}.", DateTime.UtcNow);
        }
예제 #2
0
 public IEnumerable <string> List()
 {
     return(_exchangeCache.GetAll().Select(x => x.Name));
 }