Class RxConfig
- Namespace
- RxSharp
- Assembly
- RxSharp.dll
Global, mutable configuration hooks. Mirrors rxjs's config module.
public static class RxConfig
- Inheritance
-
System.ObjectRxConfig
Properties
OnUnhandledError
Invoked when an error reaches a subscriber with no error handler. Deliberately does not
rethrow on the current (synchronous) call stack: doing so would be caught by an enclosing
operator's own Subscribe call and swallowed instead of surfacing to the caller. The
default schedules the throw on the thread pool so it still surfaces as an unhandled exception.
public static Action<Exception> OnUnhandledError { get; set; }
Property Value
- Action<Exception>
Methods
ResetOnUnhandledError()
Restores OnUnhandledError to its default behavior (queuing the exception to re-throw on the thread pool). Useful for tests that temporarily override the hook.
public static void ResetOnUnhandledError()