public async Task CacheExport(ExportRequestType type, CompressedResult result)
 {
     //TODO: create settings for results.
     await _provider.CacheObject($"{ExportPartial}{type}", result, _settings.TranslationCacheTtlSeconds);
 }
 public CompressedResult GetCachedExport(ExportRequestType type)
 {
     return(_provider.GetObjectFromCache <CompressedResult>($"{ExportPartial}{type}"));
 }
Exemplo n.º 3
0
 /// <summary/>
 public ExportQuittancesRequest(ExportRequestType config, QuittancesExportConditions exportConditions)
     : base(config) => QuittancesExportConditions = exportConditions;
Exemplo n.º 4
0
 /// <summary/>
 public ExportRefundsRequest(ExportRequestType config, RefundsExportConditions exportConditions)
     : base(config) => RefundsExportConditions = exportConditions;
Exemplo n.º 5
0
 /// <summary>
 /// Запрос на предоставление необходимой для уплаты информации (начисления)
 /// </summary>
 /// <param name="config"></param>
 /// <param name="exportConditions">Условия для предоставления необходимой для уплаты информации | requred: true</param>
 public ExportChargesRequest(ExportRequestType config, ChargesExportConditions exportConditions)
     : base(config) => ChargesExportConditions = exportConditions;
Exemplo n.º 6
0
 /// <summary>
 /// Запрос на предоставление информации об уплате
 /// </summary>
 /// <param name="config"></param>
 /// <param name="exportConditions">Условия для предоставления информации об уплате | required: true</param>
 public ExportPaymentsRequest(ExportRequestType config, PaymentsExportConditions exportConditions)
     : base(config) => PaymentsExportConditions = exportConditions;