Class Notification
Provides a set of static methods for constructing notifications.
Inherited Members
Namespace: System.Reactive
Assembly: System.Reactive.Core.dll
Syntax
public static class Notification
Methods
| Improve this Doc View SourceCreateOnCompleted<T>()
Creates an object that represents an OnCompleted notification to an observer.
Declaration
public static Notification<T> CreateOnCompleted<T>()
Returns
Type | Description |
---|---|
Notification<T> | The OnCompleted notification. |
Type Parameters
Name | Description |
---|---|
T | The type of the elements received by the observer. Upon dematerialization of the notifications into an observable sequence, this type is used as the element type for the sequence. |
CreateOnError<T>(Exception)
Creates an object that represents an OnError notification to an observer.
Declaration
public static Notification<T> CreateOnError<T>(Exception error)
Parameters
Type | Name | Description |
---|---|---|
Exception | error | The exception contained in the notification. |
Returns
Type | Description |
---|---|
Notification<T> | The OnError notification containing the exception. |
Type Parameters
Name | Description |
---|---|
T | The type of the elements received by the observer. Upon dematerialization of the notifications into an observable sequence, this type is used as the element type for the sequence. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
CreateOnNext<T>(T)
Creates an object that represents an OnNext notification to an observer.
Declaration
public static Notification<T> CreateOnNext<T>(T value)
Parameters
Type | Name | Description |
---|---|---|
T | value | The value contained in the notification. |
Returns
Type | Description |
---|---|
Notification<T> | The OnNext notification containing the value. |
Type Parameters
Name | Description |
---|---|
T | The type of the elements received by the observer. Upon dematerialization of the notifications into an observable sequence, this type is used as the element type for the sequence. |