BoundedChannelOptions Classe

Definição

Fornece opções que controlam o comportamento das instâncias Channel<T> limitadas.Provides options that control the behavior of bounded Channel<T> instances.

public ref class BoundedChannelOptions sealed : System::Threading::Channels::ChannelOptions
public sealed class BoundedChannelOptions : System.Threading.Channels.ChannelOptions
type BoundedChannelOptions = class
    inherit ChannelOptions
Public NotInheritable Class BoundedChannelOptions
Inherits ChannelOptions
Herança
BoundedChannelOptions

Construtores

BoundedChannelOptions(Int32)

Inicializa as opções.Initializes the options.

Propriedades

AllowSynchronousContinuations

true se as operações executadas em um canal puderem invocar, de forma síncrona, continuações assinadas para notificações de operações assíncronas pendentes. false se todas as continuações devem ser invocadas de forma assíncrona.true if operations performed on a channel may synchronously invoke continuations subscribed to notifications of pending async operations; false if all continuations should be invoked asynchronously.

(Herdado de ChannelOptions)
Capacity

Obtém ou define o número máximo de itens que o canal limitado pode armazenar.Gets or sets the maximum number of items the bounded channel may store.

FullMode

Obtém ou define o comportamento incorrido por operações de gravação quando o canal está cheio.Gets or sets the behavior incurred by write operations when the channel is full.

SingleReader

true os leitores do canal garantem que sempre haverá no máximo uma operação de leitura por vez. false se tal restrição não for garantida.true readers from the channel guarantee that there will only ever be at most one read operation at a time; false if no such constraint is guaranteed.

(Herdado de ChannelOptions)
SingleWriter

true os gravadores do canal garantem que sempre haverá no máximo uma operação de gravação por vez. false se tal restrição não for garantida.true if writers to the channel guarantee that there will only ever be at most one write operation at a time; false if no such constraint is guaranteed.

(Herdado de ChannelOptions)

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