Closed xps closed 6 years ago
I'll answer my own question: the configuration is now passed to the .AddExceptional(...)
method, instead of .UseExceptional(...)
.
Would you like me to submit a PR to update the documentation?
AddExceptional()
is for adding the options/settings that Exceptional needs to the services collection for use with dependency injection. UseExceptional()
is for setting up the middleware for actually handling the errors. This naming convention is very common with ASPNET Core. You will most likely need both in your app to take full advantage of Exceptional.
@xps absolutely I'd love a PR since you noticed this, time is very thing and all help is tremendously appreciated.
A PR is on the way for this (it combined with my other one. Hope this is OK)
Fixed via #123 :)
Following the documentation at https://nickcraver.com/StackExchange.Exceptional/AspDotNetCore, I am trying to pass settings to
app.UseExceptional(...)
, but there is only one overload of that method, and it doesn't take any argument (see the ExceptionalBuilderExtensions file).How can I configure it, especially the exception storage?
PS: using the latest 2.x branch on ASP.NET Core
Thanks