AsyncFlowControl Estrutura
Definição
Fornece a funcionalidade para restaurar a migração ou o fluxo do contexto de execução entre threads.Provides the functionality to restore the migration, or flow, of the execution context between threads.
public value class AsyncFlowControl : IDisposable
public struct AsyncFlowControl : IDisposable
type AsyncFlowControl = struct
interface IDisposable
Public Structure AsyncFlowControl
Implements IDisposable
- Herança
- Implementações
Comentários
Um contexto de execução contém todas as informações relacionadas à execução de um thread lógico.An execution context contains all execution-related information for a logical thread. O fluxo do contexto de execução para outros threads pode ser impedido usando o ExecutionContext.SuppressFlow método, que retorna uma AsyncFlowControl estrutura.The flow of the execution context to other threads can be prevented by using the ExecutionContext.SuppressFlow method, which returns an AsyncFlowControl structure. O Undo método da estrutura retornada AsyncFlowControl pode ser usado para desfazer a supressão do fluxo.The Undo method of the returned AsyncFlowControl structure can be used to undo the flow suppression. A AsyncFlowControl estrutura deve ser usada no mesmo thread em que foi criada.The AsyncFlowControl structure must be used on the same thread on which it was created.
Métodos
| Dispose() |
Libera todos os recursos usados pela instância atual da classe AsyncFlowControl.Releases all resources used by the current instance of the AsyncFlowControl class. |
| Equals(AsyncFlowControl) |
Determina se a estrutura AsyncFlowControl especificada é igual à estrutura AsyncFlowControl atual.Determines whether the specified AsyncFlowControl structure is equal to the current AsyncFlowControl structure. |
| Equals(Object) |
Determina se o objeto especificado é igual à estrutura AsyncFlowControl atual.Determines whether the specified object is equal to the current AsyncFlowControl structure. |
| GetHashCode() |
Obtém um código hash para a estrutura AsyncFlowControl atual.Gets a hash code for the current AsyncFlowControl structure. |
| Undo() |
Restaura o fluxo do contexto de execução entre threads.Restores the flow of the execution context between threads. |
Operadores
| Equality(AsyncFlowControl, AsyncFlowControl) |
Compara duas estruturas AsyncFlowControl para determinar se elas são iguais.Compares two AsyncFlowControl structures to determine whether they are equal. |
| Inequality(AsyncFlowControl, AsyncFlowControl) |
Compara duas estruturas AsyncFlowControl para determinar se elas não são iguais.Compares two AsyncFlowControl structures to determine whether they are not equal. |
Implantações explícitas de interface
| IDisposable.Dispose() |
Esta API dá suporte à infraestrutura do produto e não deve ser usada diretamente do seu código. Libera todos os recursos usados pelo AsyncFlowControl.Releases all resources used by the AsyncFlowControl. |