Share via


CircuitHandler.OnConnectionUpAsync(Circuit, CancellationToken) Method

Definition

Invoked when a connection to the client was established.

This method is executed once initially after OnCircuitOpenedAsync(Circuit, CancellationToken) and once each for each reconnect during the lifetime of a circuit.

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

Parameters

circuit
Circuit

The Circuit.

cancellationToken
CancellationToken

A CancellationToken that notifies when the client connection is aborted.

Returns

Task that represents the asynchronous execution operation.

Applies to