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); }
public IEnumerable <string> List() { return(_exchangeCache.GetAll().Select(x => x.Name)); }