GroupingDataflowBlockOptions Class
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 options used to configure the processing performed by dataflow blocks that group together multiple messages. These are dataflow blocks such as JoinBlock<T1,T2> and BatchBlock<T>.
public ref class GroupingDataflowBlockOptions : System::Threading::Tasks::Dataflow::DataflowBlockOptions
public class GroupingDataflowBlockOptions : System.Threading.Tasks.Dataflow.DataflowBlockOptions
type GroupingDataflowBlockOptions = class
inherit DataflowBlockOptions
Public Class GroupingDataflowBlockOptions
Inherits DataflowBlockOptions
- Inheritance
备注
The TPL Dataflow Library (the System.Threading.Tasks.Dataflow namespace) is not distributed with .NET. To install the System.Threading.Tasks.Dataflow namespace in Visual Studio, open your project, choose Manage NuGet Packages from the Project menu, and search online for the System.Threading.Tasks.Dataflow
package. Alternatively, to install it using the .NET Core CLI, run dotnet add package System.Threading.Tasks.Dataflow
.
GroupingDataflowBlockOptions is mutable and can be configured through its properties.
When specific configuration options are not set, the following defaults are used:
Options | Default |
---|---|
TaskScheduler | Default |
CancellationToken | None |
MaxMessagesPerTask | DataflowBlockOptions.Unbounded (-1) |
BoundedCapacity | DataflowBlockOptions.Unbounded (-1) |
MaxNumberOfGroups | GroupingDataflowBlockOptions.Unbounded (-1) |
Greedy | true |
Dataflow block capture the state of the options at their construction. Subsequent changes to the provided GroupingDataflowBlockOptions instance should not affect the behavior of a dataflow block.
Grouping |
Initializes a new GroupingDataflowBlockOptions. |
Unbounded |
A constant used to specify an unlimited quantity for DataflowBlockOptions members that provide an upper bound. This field is constant. (Inherited from DataflowBlockOptions) |
Bounded |
Gets or sets the maximum number of messages that may be buffered by the block. (Inherited from DataflowBlockOptions) |
Cancellation |
Gets or sets the CancellationToken to monitor for cancellation requests. (Inherited from DataflowBlockOptions) |
Ensure |
Gets or sets a value that indicates whether ordered processing should be enforced on a block's handling of messages. (Inherited from DataflowBlockOptions) |
Greedy |
Gets or sets the Boolean value to use to determine whether to greedily consume offered messages. |
Max |
Gets or sets the maximum number of messages that may be processed per task. (Inherited from DataflowBlockOptions) |
Max |
Gets or sets the maximum number of groups that should be generated by the block. |
Name |
Gets or sets the format string to use when a block is queried for its name. (Inherited from DataflowBlockOptions) |
Task |
Gets or sets the TaskScheduler to use for scheduling tasks. (Inherited from DataflowBlockOptions) |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
To |
Returns a string that represents the current object. (Inherited from Object) |
产品 | 版本 |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9 |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided), 2.1 (package-provided) |
UWP | 10.0 |