Bagikan melalui


CircuitHandler.OnCircuitOpenedAsync(Circuit, CancellationToken) Metode

Definisi

Dipanggil ketika sirkuit baru didirikan.

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

Parameter

circuit
Circuit

Circuit.

cancellationToken
CancellationToken

CancellationToken Yang memberi tahu ketika koneksi klien dibatalkan.

Mengembalikan

Task yang mewakili operasi eksekusi asinkron.

Berlaku untuk