DataflowBlock::AsObserver<TInput> Method (ITargetBlock<TInput>^)

 

Creates a new IObserver<T> abstraction over the ITargetBlock<TInput>.

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

public:
generic<typename TInput>
[ExtensionAttribute]
static IObserver<TInput>^ AsObserver(
	ITargetBlock<TInput>^ target
)

Parameters

target
Type: System.Threading.Tasks.Dataflow::ITargetBlock<TInput>^

The target to wrap.

Return Value

Type: System::IObserver<TInput>^

An observer that wraps the target block.

Type Parameters

TInput

Specifies the type of input accepted by the target block.

Return to top
Show: