Pass dependency to app.[Methods()] in program.cs in .NET 6 – Asp.net
In .NET 5 and previous, we used to have a startup.cs file, with ConfigureServices and Configure Method inside. In below function I have added ILoggerManager as parameter of the function and then passed it to app.ConfigureExceptionHandler function. public void Configure(IApplicationBuilder…