This topic has not yet been rated - Rate this topic

IReceivableSourceBlock<TOutput> Interface

.NET Framework 4.5

Represents a dataflow block that supports receiving messages without linking.

Namespace:  System.Threading.Tasks.Dataflow
Assembly:  System.Threading.Tasks.Dataflow (in System.Threading.Tasks.Dataflow.dll)
public interface IReceivableSourceBlock<TOutput> : ISourceBlock<TOutput>, 
	IDataflowBlock

Type Parameters

TOutput

Specifies the type of data supplied by the IReceivableSourceBlock<TOutput>.

The IReceivableSourceBlock<TOutput> type exposes the following members.

  NameDescription
Public propertySupported by Portable Class LibraryCompletionGets a Task that represents the asynchronous operation and completion of the dataflow block. (Inherited from IDataflowBlock.)
Top
  NameDescription
Public methodSupported by Portable Class LibraryCompleteSignals to the IDataflowBlock that it should not accept nor produce any more messages nor consume any more postponed messages. (Inherited from IDataflowBlock.)
Public methodSupported by Portable Class LibraryConsumeMessageCalled by a linked ITargetBlock<TInput> to accept and consume a DataflowMessageHeader previously offered by this ISourceBlock<TOutput>. (Inherited from ISourceBlock<TOutput>.)
Public methodSupported by Portable Class LibraryFaultCauses the IDataflowBlock to complete in a Faulted state. (Inherited from IDataflowBlock.)
Public methodSupported by Portable Class LibraryLinkToLinks the ISourceBlock<TOutput> to the specified ITargetBlock<TInput>. (Inherited from ISourceBlock<TOutput>.)
Public methodSupported by Portable Class LibraryReleaseReservationCalled by a linked ITargetBlock<TInput> to release a previously reserved DataflowMessageHeader by this ISourceBlock<TOutput>. (Inherited from ISourceBlock<TOutput>.)
Public methodSupported by Portable Class LibraryReserveMessageCalled by a linked ITargetBlock<TInput> to reserve a previously offered DataflowMessageHeader by this ISourceBlock<TOutput>. (Inherited from ISourceBlock<TOutput>.)
Public methodSupported by Portable Class LibraryTryReceiveAttempts to synchronously receive an available output item from theIReceivableSourceBlock<TOutput>.
Public methodSupported by Portable Class LibraryTryReceiveAllAttempts to synchronously receive all available items from the IReceivableSourceBlock<TOutput>.
Top
  NameDescription
Public Extension MethodSupported by Portable Class LibraryAsObservable<TOutput>Creates a new IObservable<T> abstraction over the ISourceBlock<TOutput>. (Defined by DataflowBlock.)
Public Extension MethodSupported by Portable Class LibraryLinkTo<TOutput>(ITargetBlock<TOutput>)Overloaded. Links the ISourceBlock<TOutput> to the specified ITargetBlock<TInput>. (Defined by DataflowBlock.)
Public Extension MethodSupported by Portable Class LibraryLinkTo<TOutput>(ITargetBlock<TOutput>, Predicate<TOutput>)Overloaded. Links the ISourceBlock<TOutput> to the specified ITargetBlock<TInput> using the specified filter. (Defined by DataflowBlock.)
Public Extension MethodSupported by Portable Class LibraryLinkTo<TOutput>(ITargetBlock<TOutput>, DataflowLinkOptions, Predicate<TOutput>)Overloaded. Links the ISourceBlock<TOutput> to the specified ITargetBlock<TInput> using the specified filter. (Defined by DataflowBlock.)
Public Extension MethodSupported by Portable Class LibraryOutputAvailableAsync<TOutput>()Overloaded. Provides a Task<TResult> that asynchronously monitors the source for available output. (Defined by DataflowBlock.)
Public Extension MethodSupported by Portable Class LibraryOutputAvailableAsync<TOutput>(CancellationToken)Overloaded. Provides a Task<TResult> that asynchronously monitors the source for available output. (Defined by DataflowBlock.)
Public Extension MethodSupported by Portable Class LibraryReceive<TOutput>()Overloaded. Synchronously receives a value from a specified source. (Defined by DataflowBlock.)
Public Extension MethodSupported by Portable Class LibraryReceive<TOutput>(CancellationToken)Overloaded. Synchronously receives a value from a specified source and provides a token to cancel the operation. (Defined by DataflowBlock.)
Public Extension MethodSupported by Portable Class LibraryReceive<TOutput>(TimeSpan)Overloaded. Synchronously receives a value from a specified source, observing an optional time-out period. (Defined by DataflowBlock.)
Public Extension MethodSupported by Portable Class LibraryReceive<TOutput>(TimeSpan, CancellationToken)Overloaded. Synchronously receives a value from a specified source, providing a token to cancel the operation and observing an optional time-out interval. (Defined by DataflowBlock.)
Public Extension MethodSupported by Portable Class LibraryReceiveAsync<TOutput>()Overloaded. Asynchronously receives a value from a specified source. (Defined by DataflowBlock.)
Public Extension MethodSupported by Portable Class LibraryReceiveAsync<TOutput>(CancellationToken)Overloaded. Asynchronously receives a value from a specified source and provides a token to cancel the operation. (Defined by DataflowBlock.)
Public Extension MethodSupported by Portable Class LibraryReceiveAsync<TOutput>(TimeSpan)Overloaded. Asynchronously receives a value from a specified source, observing an optional time-out period. (Defined by DataflowBlock.)
Public Extension MethodSupported by Portable Class LibraryReceiveAsync<TOutput>(TimeSpan, CancellationToken)Overloaded. Asynchronously receives a value from a specified source, providing a token to cancel the operation and observing an optional time-out interval. (Defined by DataflowBlock.)
Public Extension MethodSupported by Portable Class LibraryTryReceive<TOutput>Attempts to synchronously receive an item from the ISourceBlock<TOutput>. (Defined by DataflowBlock.)
Top
NoteNote

The TPL Dataflow Library (System.Threading.Tasks.Dataflow namespace) is not distributed with the .NET Framework 4.5. To install the System.Threading.Tasks.Dataflow namespace, open your project in Visual Studio 2012, choose Manage NuGet Packages from the Project menu, and search online for the Microsoft.Tpl.Dataflow package.

.NET Framework

Supported in: 4.5

Portable Class Library

Supported in: Portable Class Library

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.