BatchedJoinBlock Class
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.
Provides a dataflow block that batches a specified number of inputs of potentially differing types provided to one or more of its targets.
generic
public ref class BatchedJoinBlock sealed : System::Threading::Tasks::Dataflow::IReceivableSourceBlock ^, System::Collections::Generic::IList ^, System::Collections::Generic::IList ^> ^>, System::Threading::Tasks::Dataflow::ISourceBlock ^, System::Collections::Generic::IList ^, System::Collections::Generic::IList ^> ^>
public sealed class BatchedJoinBlock : System.Threading.Tasks.Dataflow.IReceivableSourceBlock,System.Collections.Generic.IList,System.Collections.Generic.IList>>, System.Threading.Tasks.Dataflow.ISourceBlock,System.Collections.Generic.IList,System.Collections.Generic.IList>>
type BatchedJoinBlock<'T1, 'T2, 'T3> = class
interface IReceivableSourceBlock * IList<'T2> * IList<'T3>>
interface ISourceBlock * IList<'T2> * IList<'T3>>
interface IDataflowBlock
type BatchedJoinBlock<'T1, 'T2, 'T3> = class
interface IDataflowBlock
interface IReceivableSourceBlock * IList<'T2> * IList<'T3>>
interface ISourceBlock * IList<'T2> * IList<'T3>>
Public NotInheritable Class BatchedJoinBlock(Of T1, T2, T3)
Implements IReceivableSourceBlock(Of Tuple(Of IList(Of T1), IList(Of T2), IList(Of T3))), ISourceBlock(Of Tuple(Of IList(Of T1), IList(Of T2), IList(Of T3)))
Type Parameters
- T1
Specifies the type of data accepted by the block's first target.
- T2
Specifies the type of data accepted by the block's second target.
- T3
Specifies the type of data accepted by the block's third target.
- Inheritance
-
BatchedJoinBlock
- Implements
Constructors
| Name | Description |
|---|---|
|
BatchedJoinBlock |
Initializes a new BatchedJoinBlock |
|
BatchedJoinBlock |
Initializes a new BatchedJoinBlock |
Properties
| Name | Description |
|---|---|
| BatchSize |
Gets the size of the batches generated by this BatchedJoinBlock |
| Completion |
Gets a Task that represents the asynchronous operation and completion of the dataflow block. |
| OutputCount |
Gets the number of output items available to be received from this block. |
| Target1 |
Gets a target that may be used to offer messages of the first type. |
| Target2 |
Gets a target that may be used to offer messages of the second type. |
| Target3 |
Gets a target that may be used to offer messages of the third type. |
Methods
| 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 the default hash function. (Inherited from Object) |
| GetType() |
Gets the Type of the current instance. (Inherited from Object) |
|
LinkTo(ITargetBlock |
Links the ISourceBlock |
| MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
| ToString() |
Returns a string that represents the formatted name of this IDataflowBlock instance. |
|
TryReceive(Predicate |
Attempts to synchronously receive an available output item from the IReceivableSourceBlock |
|
TryReceiveAll(IList |
Attempts to synchronously receive all available items from the IReceivableSourceBlock |
Explicit Interface Implementations
| Name | Description |
|---|---|
| IDataflowBlock.Fault(Exception) |
Causes the IDataflowBlock to complete in a Faulted state. |
|
ISourceBlock |
Passes the ownership of the message identified by the DataflowMessageHeader from this ISourceBlock |
|
ISourceBlock |
Releases the right to pass the ownership of the message identified by the DataflowMessageHeader from this ISourceBlock |
|
ISourceBlock |
Reserves the right to pass the ownership of the message identified by the DataflowMessageHeader from this ISourceBlock |
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. |
|
ReceiveAllAsync |
Creates an IAsyncEnumerable |
|
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. |
|
TryReceive |
Attempts to synchronously receive an item from the ISourceBlock |