Export (0) Print
Expand All

WriteOnceBlock<T> Methods

.NET Framework 4.5

The WriteOnceBlock<T> type exposes the following members.

  Name Description
Public method Complete Signals to the IDataflowBlock that it should not accept nor produce any more messages nor 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 LinkTo Links the ISourceBlock<TOutput> to the specified ITargetBlock<TInput>.
Public method ToString Returns a string that represents the formatted name of this IDataflowBlock instance. (Overrides Object.ToString().)
Public method TryReceive Attempts to synchronously receive an available output item from the IReceivableSourceBlock<TOutput>.
Top

  Name Description
Public Extension Method AsObservable<T> Creates a new IObservable<T> abstraction over the ISourceBlock<TOutput>. (Defined by DataflowBlock.)
Public Extension Method AsObserver<T> Creates a new IObserver<T> abstraction over the ITargetBlock<TInput>. (Defined by DataflowBlock.)
Public Extension Method LinkTo<T>(ITargetBlock<T>) Overloaded. Links the ISourceBlock<TOutput> to the specified ITargetBlock<TInput>. (Defined by DataflowBlock.)
Public Extension Method LinkTo<T>(ITargetBlock<T>, Predicate<T>) Overloaded. Links the ISourceBlock<TOutput> to the specified ITargetBlock<TInput> using the specified filter. (Defined by DataflowBlock.)
Public Extension Method LinkTo<T>(ITargetBlock<T>, DataflowLinkOptions, Predicate<T>) Overloaded. Links the ISourceBlock<TOutput> to the specified ITargetBlock<TInput> using the specified filter. (Defined by DataflowBlock.)
Public Extension Method OutputAvailableAsync<T>() Overloaded. Provides a Task<TResult> that asynchronously monitors the source for available output. (Defined by DataflowBlock.)
Public Extension Method OutputAvailableAsync<T>(CancellationToken) Overloaded. Provides a Task<TResult> that asynchronously monitors the source for available output. (Defined by DataflowBlock.)
Public Extension Method Post<T> Posts an item to the ITargetBlock<TInput>. (Defined by DataflowBlock.)
Public Extension Method Receive<T>() Overloaded. Synchronously receives a value from a specified source. (Defined by DataflowBlock.)
Public Extension Method Receive<T>(CancellationToken) Overloaded. Synchronously receives a value from a specified source and provides a token to cancel the operation. (Defined by DataflowBlock.)
Public Extension Method Receive<T>(TimeSpan) Overloaded. Synchronously receives a value from a specified source, observing an optional time-out period. (Defined by DataflowBlock.)
Public Extension Method Receive<T>(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 Method ReceiveAsync<T>() Overloaded. Asynchronously receives a value from a specified source. (Defined by DataflowBlock.)
Public Extension Method ReceiveAsync<T>(CancellationToken) Overloaded. Asynchronously receives a value from a specified source and provides a token to cancel the operation. (Defined by DataflowBlock.)
Public Extension Method ReceiveAsync<T>(TimeSpan) Overloaded. Asynchronously receives a value from a specified source, observing an optional time-out period. (Defined by DataflowBlock.)
Public Extension Method ReceiveAsync<T>(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 Method SendAsync<T>(T) Overloaded. Asynchronously offers a message to the target message block, allowing for postponement. (Defined by DataflowBlock.)
Public Extension Method SendAsync<T>(T, CancellationToken) Overloaded. Asynchronously offers a message to the target message block, allowing for postponement. (Defined by DataflowBlock.)
Public Extension Method TryReceive<T> Attempts to synchronously receive an item from the ISourceBlock<TOutput>. (Defined by DataflowBlock.)
Top

  Name Description
Explicit interface implemetation Private method IDataflowBlock.Fault Causes the IDataflowBlock to complete in a Faulted state.
Explicit interface implemetation Private method IReceivableSourceBlock<T>.TryReceiveAll Attempts to synchronously receive all available items from the IReceivableSourceBlock<TOutput>.
Explicit interface implemetation Private method ISourceBlock<T>.ConsumeMessage Called by a linked ITargetBlock<TInput> to accept and consume a DataflowMessageHeader previously offered by this ISourceBlock<TOutput>.
Explicit interface implemetation Private method ISourceBlock<T>.ReleaseReservation Called by a linked ITargetBlock<TInput> to release a previously reserved DataflowMessageHeader by this ISourceBlock<TOutput>.
Explicit interface implemetation Private method ISourceBlock<T>.ReserveMessage Called by a linked ITargetBlock<TInput> to reserve a previously offered DataflowMessageHeader by this ISourceBlock<TOutput>.
Explicit interface implemetation Private method ITargetBlock<T>.OfferMessage Offers a message to the ITargetBlock<TInput>, giving the target the opportunity to consume or postpone the message.
Top
Show:
© 2014 Microsoft