Método Observer.Create<T> (Action<T>, Action)
Cria um observador das ações OnNext e OnCompleted especificadas.
Namespace:System.Reactive
Assembly: System.Reactive (em System.Reactive.dll)
Sintaxe
'Declaration
Public Shared Function Create(Of T) ( _
onNext As Action(Of T), _
onCompleted As Action _
) As IObserver(Of T)
'Usage
Dim onNext As Action(Of T)
Dim onCompleted As Action
Dim returnValue As IObserver(Of T)
returnValue = Observer.Create(onNext, _
onCompleted)
public static IObserver<T> Create<T>(
Action<T> onNext,
Action onCompleted
)
public:
generic<typename T>
static IObserver<T>^ Create(
Action<T>^ onNext,
Action^ onCompleted
)
static member Create :
onNext:Action<'T> *
onCompleted:Action -> IObserver<'T>
JScript does not support generic types and methods.
Parâmetros de tipo
- T
O tipo de argumento de observador.
Parâmetros
- Onnext
Tipo: System.Action<T>
A implementação da ação OnNext do observador.
- Oncompleted
Tipo: System.Action
A implementação da ação OnCompleted do observador.
Valor Retornado
Tipo: System.IObserver<T>
O objeto observador implementado usando as ações fornecidas.