Share via


HubLifetimeManager<THub>.OnConnectedAsync(HubConnectionContext) Method

Definition

Called when a connection is started.

public:
 abstract System::Threading::Tasks::Task ^ OnConnectedAsync(Microsoft::AspNetCore::SignalR::HubConnectionContext ^ connection);
public abstract System.Threading.Tasks.Task OnConnectedAsync (Microsoft.AspNetCore.SignalR.HubConnectionContext connection);
abstract member OnConnectedAsync : Microsoft.AspNetCore.SignalR.HubConnectionContext -> System.Threading.Tasks.Task
Public MustOverride Function OnConnectedAsync (connection As HubConnectionContext) As Task

Parameters

connection
HubConnectionContext

The connection.

Returns

A Task that represents the asynchronous connect.

Applies to