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