共用方式為


CircuitHandler.OnCircuitOpenedAsync(Circuit, CancellationToken) 方法

定義

建立新線路時叫用。

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

參數

circuit
Circuit

Circuit

cancellationToken
CancellationToken

CancellationToken 會在用戶端連線中止時通知。

傳回

Task ,表示非同步執行作業。

適用於