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
NameDescriptionAccept(IObserver
Accept(Action
Accept
See Also
Reference
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
- observer
Type: System.IObserver<T>
The observer to invoke the notification on.
See Also
Reference
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.