CircuitHandler.OnConnectionUpAsync(Circuit, CancellationToken) 方法

定义

在建立与客户端的连接时调用。

此方法在最初之后 OnCircuitOpenedAsync(Circuit, CancellationToken) 执行一次,在线路生存期内每次重新连接时执行一次。

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

参数

circuit
Circuit

Circuit

cancellationToken
CancellationToken

CancellationToken 客户端连接中止时发出通知的 。

返回

Task 表示异步执行操作的 。

适用于