DataflowBlock.AsObserver<TInput>(ITargetBlock<TInput>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new IObserver<T> abstraction over the ITargetBlock<TInput>.
public:
generic <typename TInput>
[System::Runtime::CompilerServices::Extension]
static IObserver<TInput> ^ AsObserver(System::Threading::Tasks::Dataflow::ITargetBlock<TInput> ^ target);
public static IObserver<TInput> AsObserver<TInput> (this System.Threading.Tasks.Dataflow.ITargetBlock<TInput> target);
static member AsObserver : System.Threading.Tasks.Dataflow.ITargetBlock<'Input> -> IObserver<'Input>
<Extension()>
Public Function AsObserver(Of TInput) (target As ITargetBlock(Of TInput)) As IObserver(Of TInput)
Type Parameters
- TInput
Specifies the type of input accepted by the target block.
Parameters
- target
- ITargetBlock<TInput>
The target to wrap.
Returns
IObserver<TInput>
An observer that wraps the target block.
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET