DataflowBlock::AsObservable<TOutput> Method (ISourceBlock<TOutput>^)

 

Creates a new IObservable<T> abstraction over the ISourceBlock<TOutput>.

Namespace:   System.Threading.Tasks.Dataflow
Assembly:  System.Threading.Tasks.Dataflow (in System.Threading.Tasks.Dataflow.dll)

public:
generic<typename TOutput>
[ExtensionAttribute]
static IObservable<TOutput>^ AsObservable(
	ISourceBlock<TOutput>^ source
)

Parameters

source
Type: System.Threading.Tasks.Dataflow::ISourceBlock<TOutput>^

The source to wrap.

Return Value

Type: System::IObservable<TOutput>^

An IObservable<T> that enables observers to be subscribed to the source.

Type Parameters

TOutput

Specifies the type of data contained in the source.

Exception Condition
ArgumentNullException

The source is null.

Return to top
Show: