© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
3 replies
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
}
[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?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

BulkInsert to SQL, parallel processing
C#CC# / help
3y ago
✅ How to improve Parallel.ForEachAsync usage?
C#CC# / help
3y ago
Parallel list
C#CC# / help
2y ago
How to add spritefont to Monogame
C#CC# / help
15mo ago