AsyncValueTaskMethodBuilder Struct
Definizione
public value class AsyncValueTaskMethodBuilder
public struct AsyncValueTaskMethodBuilder
type AsyncValueTaskMethodBuilder = struct
Public Structure AsyncValueTaskMethodBuilder
- Ereditarietà
Proprietà
Task |
Ottiene l'attività per questo generatore.Gets the task for this builder. |
Metodi
AwaitOnCompleted<TAwaiter,TStateMachine>(TAwaiter, TStateMachine) |
Programma la macchina a stati per passare all'azione successiva una volta completato l'elemento awaiter specificato.Schedules the state machine to proceed to the next action when the specified awaiter completes. |
AwaitUnsafeOnCompleted<TAwaiter,TStateMachine>(TAwaiter, TStateMachine) |
Programma la macchina a stati per passare all'azione successiva una volta completato l'elemento awaiter specificato.Schedules the state machine to proceed to the next action when the specified awaiter completes. |
Create() |
Crea un'istanza dello struct AsyncValueTaskMethodBuilder.Creates an instance of the AsyncValueTaskMethodBuilder struct. |
SetException(Exception) |
Contrassegna l'attività come non riuscita e associa l'eccezione specificata all'attività.Marks the task as failed and binds the specified exception to the task. |
SetResult() |
Contrassegna l'attività come completata correttamente.Marks the task as successfully completed. |
SetStateMachine(IAsyncStateMachine) |
Associa il generatore alla macchina a stati specificata.Associates the builder with the specified state machine. |
Start<TStateMachine>(TStateMachine) |
Inizia l'esecuzione del generatore con la macchina a stati associata.Begins running the builder with the associated state machine. |