C#C
C#3y ago
SWEETPONY

❔ how to add parallel processing?

I have following function:
[DeliveryHandler( Name = ReportsAPI.Commands.ReportsGenerate )]
public async Task OnReportsGenerate(
           IDeliveryHandlerContext context,
           ReportsGenerateArguments arguments )
{
      /// reports are generated sequentially for now
      /// think about parallel processing

      async Task GenerateProgress( ReportGenerateProgress progress )
      {
            /// fill progress payload
      }

      // generate report logic
}


I can call OnReportGenerate from bus and report will generate sequentially/ So.. how can I fix this?
And another question: how can I add progress?
Was this page helpful?