DataflowBlock.AsObservable<TOutput>(ISourceBlock<TOutput>) 메서드

정의

IObservable<T> 위에 새 ISourceBlock<TOutput> 추상화를 만듭니다.Creates a new IObservable<T> abstraction over the ISourceBlock<TOutput>.

public:
generic <typename TOutput>
[System::Runtime::CompilerServices::Extension]
 static IObservable<TOutput> ^ AsObservable(System::Threading::Tasks::Dataflow::ISourceBlock<TOutput> ^ source);
public static IObservable<TOutput> AsObservable<TOutput> (this System.Threading.Tasks.Dataflow.ISourceBlock<TOutput> source);
static member AsObservable : System.Threading.Tasks.Dataflow.ISourceBlock<'Output> -> IObservable<'Output>
<Extension()>
Public Function AsObservable(Of TOutput) (source As ISourceBlock(Of TOutput)) As IObservable(Of TOutput)

형식 매개 변수

TOutput

소스에 포함된 데이터 형식을 지정합니다.Specifies the type of data contained in the source.

매개 변수

source
ISourceBlock<TOutput>

래핑할 소스입니다.The source to wrap.

반환

IObservable<TOutput>

관찰자가 소스를 구독할 수 있도록 하는 IObservable<T>입니다.An IObservable<T> that enables observers to be subscribed to the source.

예외

sourcenull인 경우The source is null.

적용 대상