You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replacing the unhandled exception handler with ObservableSystem.RegisterUnhandledExceptionHandler doesn't make existing subscriptions utilize it correctly.
Subscribe and SubscribeAwait are embedding the handler at the moment of subscription creation, and not checking if it has changed when the exception actually occurs.
In our application, we have some DI created services set up subscriptions before our custom exception handler has been registered, making those subscriptions use the default handler rather than our custom one.
Delaying the subscriptions after the registration of the handler would be complex and impractical. It would be preferrable if the Subscribe methods instead used the most recently registered handler at the moment of the exception.