GroupingDataflowBlockOptions Classe

Definição

Fornece as opções usadas para configurar o processamento executado pelos blocos de fluxo de dados que agrupam várias mensagens.Provides options used to configure the processing performed by dataflow blocks that group together multiple messages. Esses são blocos de fluxo de dados, como JoinBlock<T1,T2> e BatchBlock<T>.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
Herança
GroupingDataflowBlockOptions

Comentários

Observação

A Biblioteca de Fluxo de Dados TPL (o namespace System.Threading.Tasks.Dataflow) não é distribuída com o .NET.The TPL Dataflow Library (the System.Threading.Tasks.Dataflow namespace) is not distributed with .NET. Para instalar o namespace System.Threading.Tasks.Dataflow no Visual Studio, abra o projeto, escolha Gerenciar Pacotes NuGet no menu Projeto e pesquise online o pacote System.Threading.Tasks.Dataflow.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. Como alternativa, instale-o usando a CLI do .NET Core e execute dotnet add package System.Threading.Tasks.Dataflow.Alternatively, to install it using the .NET Core CLI, run dotnet add package System.Threading.Tasks.Dataflow.

GroupingDataflowBlockOptions é mutável e pode ser configurada por meio de suas propriedades.GroupingDataflowBlockOptions is mutable and can be configured through its properties.

Quando opções de configuração específicas não são definidas, os padrões a seguir são usados:When specific configuration options are not set, the following defaults are used:

OpçõesOptions PadrãoDefault
TaskSchedulerTaskScheduler Default
CancellationTokenCancellationToken None
MaxMessagesPerTaskMaxMessagesPerTask DataflowBlockOptions. Unbounded (-1)DataflowBlockOptions.Unbounded (-1)
BoundedCapacityBoundedCapacity DataflowBlockOptions. Unbounded (-1)DataflowBlockOptions.Unbounded (-1)
MaxNumberOfGroupsMaxNumberOfGroups GroupingDataflowBlockOptions. Unbounded (-1)GroupingDataflowBlockOptions.Unbounded (-1)
GreedyGreedy true

Bloco de Dataflow Capture o estado das opções em sua construção.Dataflow block capture the state of the options at their construction. As alterações subseqüentes na GroupingDataflowBlockOptions instância fornecida não devem afetar o comportamento de um bloco de Dataflow.Subsequent changes to the provided GroupingDataflowBlockOptions instance should not affect the behavior of a dataflow block.

Construtores

GroupingDataflowBlockOptions()

Inicializa um novo GroupingDataflowBlockOptions.Initializes a new GroupingDataflowBlockOptions.

Campos

Unbounded

Uma constante usada para especificar uma quantidade ilimitada de membros de DataflowBlockOptions que fornecem um limite superior.A constant used to specify an unlimited quantity for DataflowBlockOptions members that provide an upper bound. Este campo é constante.This field is constant.

(Herdado de DataflowBlockOptions)

Propriedades

BoundedCapacity

Obtém ou define o número máximo de mensagens que podem ser armazenadas em buffer pelo bloco.Gets or sets the maximum number of messages that may be buffered by the block.

(Herdado de DataflowBlockOptions)
CancellationToken

Obtém ou define o CancellationToken a ser monitorado para solicitações de cancelamento.Gets or sets the CancellationToken to monitor for cancellation requests.

(Herdado de DataflowBlockOptions)
EnsureOrdered

Obtém ou define um valor que indica se o processamento ordenado deve ser imposto na manipulação de mensagens de um bloco.Gets or sets a value that indicates whether ordered processing should be enforced on a block's handling of messages.

(Herdado de DataflowBlockOptions)
Greedy

Obtém ou define o valor booliano a ser usado para determinar se as mensagens oferecidas devem ser consumidas vorazmente.Gets or sets the Boolean value to use to determine whether to greedily consume offered messages.

MaxMessagesPerTask

Obtém ou define o número máximo de mensagens que podem ser processadas por tarefa.Gets or sets the maximum number of messages that may be processed per task.

(Herdado de DataflowBlockOptions)
MaxNumberOfGroups

Obtém ou define o número máximo de grupos que devem ser gerados pelo bloco.Gets or sets the maximum number of groups that should be generated by the block.

NameFormat

Obtém ou define a cadeia de caracteres de formato a ser usada quando o nome de um bloco é consultado.Gets or sets the format string to use when a block is queried for its name.

(Herdado de DataflowBlockOptions)
TaskScheduler

Obtém ou define o TaskScheduler a ser usado para tarefas de agendamento.Gets or sets the TaskScheduler to use for scheduling tasks.

(Herdado de DataflowBlockOptions)

Métodos

Equals(Object)

Determina se o objeto especificado é igual ao objeto atual.Determines whether the specified object is equal to the current object.

(Herdado de Object)
GetHashCode()

Serve como a função de hash padrão.Serves as the default hash function.

(Herdado de Object)
GetType()

Obtém o Type da instância atual.Gets the Type of the current instance.

(Herdado de Object)
MemberwiseClone()

Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object.

(Herdado de Object)
ToString()

Retorna uma cadeia de caracteres que representa o objeto atual.Returns a string that represents the current object.

(Herdado de Object)

Aplica-se a