Share via


DefaultHubLifetimeManager<THub>.OnConnectedAsync Method

Definition

Called when a connection is started.

public:
 override System::Threading::Tasks::Task ^ OnConnectedAsync(Microsoft::AspNetCore::SignalR::HubConnectionContext ^ connection);
public override System.Threading.Tasks.Task OnConnectedAsync (Microsoft.AspNetCore.SignalR.HubConnectionContext connection);
override this.OnConnectedAsync : Microsoft.AspNetCore.SignalR.HubConnectionContext -> System.Threading.Tasks.Task
Public Overrides Function OnConnectedAsync (connection As HubConnectionContext) As Task

Parameters

connection
HubConnectionContext

The connection.

Returns

A Task that represents the asynchronous connect.

Applies to