The recording of the first ever ReactiveUI virtual conference is available on our YouTube Channel.

Notification<T>.Accept(IObserver<T>)

Notification<T>.Accept Method

Include Protected Members
Include Inherited Members

Invokes the delegate corresponding to the notification.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

NameDescriptionPublic methodAccept(IObserver)Invokes the observer's method corresponding to the notification.Public methodAccept(Action, Action, Action)Invokes the delegate corresponding to the notification.Public methodAccept(Func<T, TResult>, Func<Exception, TResult>, Func)Invokes the delegate corresponding to the notification and returns the produced result.Top

See Also

Reference

Notification<T> Class

System.Reactive Namespace

Notification<T>.Accept Method (IObserver<T>)

Invokes the observer's method corresponding to the notification.

Namespace:  System.Reactive
Assembly:  System.Reactive (in System.Reactive.dll)

Syntax

'Declaration
Public MustOverride Sub Accept ( _
    observer As IObserver(Of T) _
)
'Usage
Dim instance As Notification
Dim observer As IObserver(Of T)

instance.Accept(observer)
public abstract void Accept(
    IObserver<T> observer
)
public:
virtual void Accept(
    IObserver<T>^ observer
) abstract
abstract Accept : 
        observer:IObserver<'T> -> unit 
public abstract function Accept(
    observer : IObserver<T>
)

Parameters

See Also

Reference

Notification<T> Class

Accept Overload

System.Reactive Namespace

Notification<T>.Accept Method (Action<T>, Action<Exception>, Action)

Invokes the delegate corresponding to the notification.

Namespace:  System.Reactive
Assembly:  System.Reactive (in System.Reactive.dll)

Syntax

'Declaration
Public MustOverride Sub Accept ( _
    onNext As Action(Of T), _
    onError As Action(Of Exception), _
    onCompleted As Action _
)
'Usage
Dim instance As Notification
Dim onNext As Action(Of T)
Dim onError As Action(Of Exception)
Dim onCompleted As Action

instance.Accept(onNext, onError, onCompleted)
public abstract void Accept(
    Action<T> onNext,
    Action<Exception> onError,
    Action onCompleted
)
public:
virtual void Accept(
    Action<T>^ onNext, 
    Action<Exception^>^ onError, 
    Action^ onCompleted
) abstract
abstract Accept : 
        onNext:Action<'T> * 
        onError:Action<Exception> * 
        onCompleted:Action -> unit 
public abstract function Accept(
    onNext : Action<T>, 
    onError : Action<Exception>, 
    onCompleted : Action
)

Parameters

  • onNext
    Type: System.Action<T>
    The delegate to invoke for an OnNext notification.

  • onError
    Type: System.Action<Exception>
    The delegate to invoke for an OnError notification.

  • onCompleted
    Type: System.Action
    The delegate to invoke for an OnCompleted notification.

See Also

Reference

Notification<T> Class

Accept Overload

System.Reactive Namespace