NickCraver / StackExchange.Exceptional

Error handler used for the Stack Exchange network
https://nickcraver.com/StackExchange.Exceptional/
Apache License 2.0
860 stars 170 forks source link

Settings refactor (non-static) #108

Closed NickCraver closed 6 years ago

NickCraver commented 6 years ago

Still in progress but putting up a PR to review/comment on as I go. In general this makes settings more flexible and adapters better to the ASP.NET Core-isms of configuration in general. It's closer to what the user expects and makes configuration intuitive.

I've also moved the remaining static settings to a new Exceptional class for a bit easier visibility and more intuitive intellisense. This class also has helpers for the global event handler attachments (and single-attachment assurances).

Next up is changing the configuration binding in ASP.NET Core and eliminating the intermediate object.