Condividi tramite


CircuitHandler.OnCircuitOpenedAsync(Circuit, CancellationToken) Metodo

Definizione

Richiamato quando è stato stabilito un nuovo circuito.

public:
 virtual System::Threading::Tasks::Task ^ OnCircuitOpenedAsync(Microsoft::AspNetCore::Components::Server::Circuits::Circuit ^ circuit, System::Threading::CancellationToken cancellationToken);
public virtual System.Threading.Tasks.Task OnCircuitOpenedAsync (Microsoft.AspNetCore.Components.Server.Circuits.Circuit circuit, System.Threading.CancellationToken cancellationToken);
abstract member OnCircuitOpenedAsync : Microsoft.AspNetCore.Components.Server.Circuits.Circuit * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.OnCircuitOpenedAsync : Microsoft.AspNetCore.Components.Server.Circuits.Circuit * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function OnCircuitOpenedAsync (circuit As Circuit, cancellationToken As CancellationToken) As Task

Parametri

circuit
Circuit

Oggetto Circuit.

cancellationToken
CancellationToken

Oggetto CancellationToken che notifica quando la connessione client viene interrotta.

Restituisce

Task che rappresenta l'operazione di esecuzione asincrona.

Si applica a