Class Notification
- Namespace
- RxSharp
- Assembly
- RxSharp.dll
Factory helpers for Notification<T>. A non-generic sibling avoids CA1000 (static members on generic types).
public static class Notification
- Inheritance
-
System.ObjectNotification
Methods
CreateCompleted<T>()
Creates a Completed notification.
public static Notification<T> CreateCompleted<T>()
Returns
- Notification<T>
The notification.
Type Parameters
TThe element type of the observable that completed.
CreateError<T>(Exception)
Creates a Error notification carrying error.
public static Notification<T> CreateError<T>(Exception error)
Parameters
errorExceptionThe error.
Returns
- Notification<T>
The notification.
Type Parameters
TThe element type of the observable the error was notified on.
CreateNext<T>(T)
Creates a Next notification carrying value.
public static Notification<T> CreateNext<T>(T value)
Parameters
valueTThe emitted value.
Returns
- Notification<T>
The notification.
Type Parameters
TThe type of the emitted value.