But that is inaccessible due to its protection level. As a workaround we can call:
var handlerFactory = new HandlerFactory();
Which internally loads the settings but isn't really ideal in a windows service and means we need the additional StackExchange.Exceptional package reference rather than just StackExchange.Exceptional.Shared.
When running in a non web environment (in our case a windows service), the exceptional settings are not loaded from the configuration file.
Given the following configuration:
When calling:
The value of appName is "My Application" and connectionString is null.
What we need appears to be to call:
StackExchange.Exceptional.Settings.LoadSettings();
But that is inaccessible due to its protection level. As a workaround we can call:
var handlerFactory = new HandlerFactory();
Which internally loads the settings but isn't really ideal in a windows service and means we need the additional
StackExchange.Exceptional
package reference rather than justStackExchange.Exceptional.Shared
.