Condividi tramite


DefaultHubLifetimeManager<THub>.OnConnectedAsync Metodo

Definizione

Chiamato quando viene avviata una connessione.

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

Parametri

connection
HubConnectionContext

Connessione.

Restituisce

Oggetto Task che rappresenta la connessione asincrona.

Si applica a