ISourceBlock Interface
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.
Represents a dataflow block that is a source of data.
generic
public interface class ISourceBlock : System::Threading::Tasks::Dataflow::IDataflowBlock
public interface ISourceBlock : System.Threading.Tasks.Dataflow.IDataflowBlock
type ISourceBlock<'Output> = interface
interface IDataflowBlock
Public Interface ISourceBlock(Of Out TOutput)
Implements IDataflowBlock
Type Parameters
- TOutput
Specifies the type of data supplied by the ISourceBlock
- Derived
- Implements
Properties
| Name | Description |
|---|---|
| Completion |
Gets a Task that represents the asynchronous operation and completion of the dataflow block. (Inherited from IDataflowBlock) |
Methods
| Name | Description |
|---|---|
| Complete() |
Signals to the IDataflowBlock that it should not accept nor produce any more messages nor consume any more postponed messages. (Inherited from IDataflowBlock) |
|
ConsumeMessage(DataflowMessageHeader, ITargetBlock |
Called by a linked ITargetBlock |
| Fault(Exception) |
Causes the IDataflowBlock to complete in a Faulted state. (Inherited from IDataflowBlock) |
|
LinkTo(ITargetBlock |
Links the ISourceBlock |
|
ReleaseReservation(DataflowMessageHeader, ITargetBlock |
Called by a linked ITargetBlock |
|
ReserveMessage(DataflowMessageHeader, ITargetBlock |
Called by a linked ITargetBlock |
Extension Methods
| Name | Description |
|---|---|
|
AsObservable |
Creates a new IObservable |
|
LinkTo |
Links the ISourceBlock |
|
LinkTo |
Links the ISourceBlock |
|
LinkTo |
Links the ISourceBlock |
|
OutputAvailableAsync |
Provides a Task |
|
OutputAvailableAsync |
Provides a Task |
|
Receive |
Synchronously receives a value from a specified source and provides a token to cancel the operation. |
|
Receive |
Synchronously receives a value from a specified source, providing a token to cancel the operation and observing an optional time-out interval. |
|
Receive |
Synchronously receives a value from a specified source, observing an optional time-out period. |
|
Receive |
Synchronously receives a value from a specified source. |
|
ReceiveAsync |
Asynchronously receives a value from a specified source and provides a token to cancel the operation. |
|
ReceiveAsync |
Asynchronously receives a value from a specified source, providing a token to cancel the operation and observing an optional time-out interval. |
|
ReceiveAsync |
Asynchronously receives a value from a specified source, observing an optional time-out period. |
|
ReceiveAsync |
Asynchronously receives a value from a specified source. |