C
C#2y ago
dragzun

❔ Web application builder order

I have the following issue : I am working on an web application that uses Serilog. I have created a custom Global Exception Handling Middleware which I use to get more details regarding exceptions. Issue is, because of the order I am using for the configure methods from my builder, basically builder.ConfigureLogging is called before builder.ConfigurePipeline , which is the middleware, the exception is not being caught by the middleware, it gets treated by serilog. I cannot change the app order since some of them depend on each other to run. Sadly I cannot share code, I am wondering if anyone could have a suggestion regarding this issue based on what I've described. Thank you.
1 Reply
Accord
Accord2y ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server