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; })); }
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)); }