CancellationChangeToken Classe

Definição

Uma implementação de IChangeToken usando CancellationToken.A IChangeToken implementation using CancellationToken.

public ref class CancellationChangeToken : Microsoft::Extensions::Primitives::IChangeToken
public class CancellationChangeToken : Microsoft.Extensions.Primitives.IChangeToken
type CancellationChangeToken = class
    interface IChangeToken
Public Class CancellationChangeToken
Implements IChangeToken
Herança
CancellationChangeToken
Implementações

Construtores

CancellationChangeToken(CancellationToken)

Inicializa uma nova instância de CancellationChangeToken.Initializes a new instance of CancellationChangeToken.

Propriedades

ActiveChangeCallbacks

Indica se este token gerará proativamente retornos de chamada.Indicates if this token will pro-actively raise callbacks. Se false, o consumidor do token deverá sondar HasChanged para detectar alterações.If false, the token consumer must poll HasChanged to detect changes.

HasChanged

Obtém um valor que indica se uma alteração ocorreu.Gets a value that indicates if a change has occurred.

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)
RegisterChangeCallback(Action<Object>, Object)

Registra para um retorno de chamada que será invocado quando a entrada for alterada.Registers for a callback that will be invoked when the entry has changed. HasChanged precisa ser definido antes de o retorno de chamada ser invocado.HasChanged must be set before the callback is invoked.

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