Condividi tramite


HubLifetimeManager<THub>.OnConnectedAsync(HubConnectionContext) Metodo

Definizione

Chiamato all'avvio di una connessione.

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

Parametri

connection
HubConnectionContext

Connessione.

Restituisce

Oggetto Task che rappresenta la connessione asincrona.

Si applica a