コード例 #1
0
 public async Task <IEnumerable <BillingInvoiceDetailForExport> > GetDetailsForExportR(BillingInvoiceSearch option)
 {
     return(await hubContext.DoAsync(option.ConnectionId, async (notifier, token) =>
     {
         var result = (await billingInvoiceProcessor.GetDetailsForExportAsync(option.BillingInputIds, option.CompanyId, token)).ToList();
         notifier?.UpdateState();
         return result;
     }));
 }
コード例 #2
0
 public async Task <BillingInvoiceDetailForExportResult> GetDetailsForExportAsync(
     string SessionKey,
     long[] BillingInputIds,
     int CompanyId,
     string connectionId)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var notifier = hubContext.CreateNotifier(connectionId);
         var result = (await billingInvoiceProcessor.GetDetailsForExportAsync(BillingInputIds, CompanyId, token)).ToList();
         notifier?.UpdateState();
         return new BillingInvoiceDetailForExportResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             BillingInvoicesDetails = result,
         };
     }, logger, connectionId));
 }