Export (0) Print
Expand All

ActionBlock<TInput> Methods

.NET Framework 4.5

The ActionBlock<TInput> type exposes the following members.

  Name Description
Public method Complete Signals to the dataflow block that it shouldn't accept or produce any more messages and shouldn't consume any more postponed messages.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Post Posts an item to the target dataflow block.
Public method ToString Returns a string that represents the formatted name of this IDataflowBlock instance. (Overrides Object.ToString().)
Top

  Name Description
Public Extension Method AsObserver<TInput> Creates a new IObserver<T> abstraction over the ITargetBlock<TInput>. (Defined by DataflowBlock.)
Public Extension Method Post<TInput> Posts an item to the ITargetBlock<TInput>. (Defined by DataflowBlock.)
Public Extension Method SendAsync<TInput>(TInput) Overloaded. Asynchronously offers a message to the target message block, allowing for postponement. (Defined by DataflowBlock.)
Public Extension Method SendAsync<TInput>(TInput, CancellationToken) Overloaded. Asynchronously offers a message to the target message block, allowing for postponement. (Defined by DataflowBlock.)
Top

  Name Description
Explicit interface implemetation Private method IDataflowBlock.Fault Causes the dataflow block to complete in a faulted state.
Explicit interface implemetation Private method ITargetBlock<TInput>.OfferMessage Offers a message to the dataflow block, and gives it the opportunity to consume or postpone the message.
Top
Show:
© 2014 Microsoft