TransformBlock<TInput, TOutput> Methods
.NET Framework 4.5
The TransformBlock<TInput, TOutput> type exposes the following members.
| Name | Description | |
|---|---|---|
|
Complete | Signals to the IDataflowBlock that it should not accept nor produce any more messages nor consume any more postponed messages. |
|
Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
LinkTo | Links the ISourceBlock<TOutput> to the specified ITargetBlock<TInput>. |
|
ToString | Returns a string that represents the formatted name of this IDataflowBlock instance. (Overrides Object.ToString().) |
|
TryReceive | Attempts to synchronously receive an available output item from the IReceivableSourceBlock<TOutput>. |
|
TryReceiveAll | Attempts to synchronously receive all available items from the IReceivableSourceBlock<TOutput>. |
| Name | Description | |
|---|---|---|
|
AsObservable<TOutput> | Creates a new IObservable<T> abstraction over the ISourceBlock<TOutput>. (Defined by DataflowBlock.) |
|
AsObserver<TInput> | Creates a new IObserver<T> abstraction over the ITargetBlock<TInput>. (Defined by DataflowBlock.) |
|
LinkTo<TOutput>(ITargetBlock<TOutput>) | Overloaded. Links the ISourceBlock<TOutput> to the specified ITargetBlock<TInput>. (Defined by DataflowBlock.) |
|
LinkTo<TOutput>(ITargetBlock<TOutput>, Predicate<TOutput>) | Overloaded. Links the ISourceBlock<TOutput> to the specified ITargetBlock<TInput> using the specified filter. (Defined by DataflowBlock.) |
|
LinkTo<TOutput>(ITargetBlock<TOutput>, DataflowLinkOptions, Predicate<TOutput>) | Overloaded. Links the ISourceBlock<TOutput> to the specified ITargetBlock<TInput> using the specified filter. (Defined by DataflowBlock.) |
|
OutputAvailableAsync<TOutput>() | Overloaded. Provides a Task<TResult> that asynchronously monitors the source for available output. (Defined by DataflowBlock.) |
|
OutputAvailableAsync<TOutput>(CancellationToken) | Overloaded. Provides a Task<TResult> that asynchronously monitors the source for available output. (Defined by DataflowBlock.) |
|
Post<TInput> | Posts an item to the ITargetBlock<TInput>. (Defined by DataflowBlock.) |
|
Receive<TOutput>() | Overloaded. Synchronously receives a value from a specified source. (Defined by DataflowBlock.) |
|
Receive<TOutput>(CancellationToken) | Overloaded. Synchronously receives a value from a specified source and provides a token to cancel the operation. (Defined by DataflowBlock.) |
|
Receive<TOutput>(TimeSpan) | Overloaded. Synchronously receives a value from a specified source, observing an optional time-out period. (Defined by DataflowBlock.) |
|
Receive<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.) |
|
ReceiveAsync<TOutput>() | Overloaded. Asynchronously receives a value from a specified source. (Defined by DataflowBlock.) |
|
ReceiveAsync<TOutput>(CancellationToken) | Overloaded. Asynchronously receives a value from a specified source and provides a token to cancel the operation. (Defined by DataflowBlock.) |
|
ReceiveAsync<TOutput>(TimeSpan) | Overloaded. Asynchronously receives a value from a specified source, observing an optional time-out period. (Defined by DataflowBlock.) |
|
ReceiveAsync<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.) |
|
SendAsync<TInput>(TInput) | Overloaded. Asynchronously offers a message to the target message block, allowing for postponement. (Defined by DataflowBlock.) |
|
SendAsync<TInput>(TInput, CancellationToken) | Overloaded. Asynchronously offers a message to the target message block, allowing for postponement. (Defined by DataflowBlock.) |
|
TryReceive<TOutput> | Attempts to synchronously receive an item from the ISourceBlock<TOutput>. (Defined by DataflowBlock.) |
| Name | Description | |
|---|---|---|
|
IDataflowBlock.Fault | Causes the IDataflowBlock to complete in a Faulted state. |
|
ISourceBlock<TOutput>.ConsumeMessage | Called by a linked ITargetBlock<TInput> to accept and consume a DataflowMessageHeader previously offered by this ISourceBlock<TOutput>. |
|
ISourceBlock<TOutput>.ReleaseReservation | Called by a linked ITargetBlock<TInput> to release a previously reserved DataflowMessageHeader by this ISourceBlock<TOutput>. |
|
ISourceBlock<TOutput>.ReserveMessage | Called by a linked ITargetBlock<TInput> to reserve a previously offered DataflowMessageHeader by this ISourceBlock<TOutput>. |
|
ITargetBlock<TInput>.OfferMessage | Offers a message to the ITargetBlock<TInput>, giving the target the opportunity to consume or postpone the message. |