Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft