共用方式為


CircuitHandler.OnCircuitClosedAsync(Circuit, CancellationToken) 方法

定義

在捨棄新線路時叫用。

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

參數

circuit
Circuit

Circuit

cancellationToken
CancellationToken

CancellationToken

傳回

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

適用於