public async Task <CountResult> CancelPublishAsync(string SessionKey, string connectionId, long[] BilinngInputIds) { return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token => { var result = await billingInvoiceProcessor.CancelPublishAsync(BilinngInputIds, token); return result; }, logger, connectionId)); }
public async Task <int> CancelPublishR(BillingInvoiceSearch option) => await hubContext.DoAsync(option.ConnectionId, async (notifier, token) => (await billingInvoiceProcessor.CancelPublishAsync(option.BillingIds, token)).Count);