Search Results for

    Show / Hide Table of Contents

    Class Notification

    Provides a set of static methods for constructing notifications.

    Inheritance
    Object
    Notification
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ToString()
    Object.ReferenceEquals(Object, Object)
    Namespace: System.Reactive
    Assembly: System.Reactive.Core.dll
    Syntax
    public static class Notification

    Methods

    | Improve this Doc View Source

    CreateOnCompleted<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.

    | Improve this Doc View Source

    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

    error is null.

    | Improve this Doc View Source

    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.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX