davidfowl / AspNetCoreDiagnosticScenarios

This repository has examples of broken patterns in ASP.NET Core applications
7.69k stars 740 forks source link

Describe the optimal way of refactoring event driven code or of using async code in event handlers #57

Open Siderite opened 4 years ago

Siderite commented 4 years ago

There are legacy classes that use events and that need to use new async calls in their handlers. What is the suggested way of running async calls synchronously there?