다음을 통해 공유


Observer.ToNotifier<T> 메서드

관찰자로부터 알림 콜백을 만듭니다.

네임스페이스:System.Reactive
어셈블리: System.Reactive(System.Reactive.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToNotifier(Of T) ( _
    observer As IObserver(Of T) _
) As Action(Of Notification(Of T))
'Usage
Dim observer As IObserver(Of T)
Dim returnValue As Action(Of Notification(Of T))

returnValue = observer.ToNotifier()
public static Action<Notification<T>> ToNotifier<T>(
    this IObserver<T> observer
)
[ExtensionAttribute]
public:
generic<typename T>
static Action<Notification<T>^>^ ToNotifier(
    IObserver<T>^ observer
)
static member ToNotifier : 
        observer:IObserver<'T> -> Action<Notification<'T>> 
JScript does not support generic types and methods.

형식 매개 변수

  • T
    관찰자 인수 형식입니다.

매개 변수

반환 값

형식: System.Action<알림<T>>
입력 알림을 기본 관찰자에게 전달하는 작업입니다.

사용 정보

Visual Basic 및 C#에서는 IObserver<T> 형식의 모든 개체에서 이 메서드를 instance 메서드로 호출할 수 있습니다. 인스턴스 메서드 구문을 사용하여 이 메서드를 호출할 경우에는 첫 번째 매개 변수를 생략합니다. 자세한 내용은 또는 를 참조하세요.

참고 항목

참조

Observer 클래스

System.Reactive 네임스페이스