DefaultHubLifetimeManager<THub>.OnConnectedAsync Méthode

Définition

Appelé lors du démarrage d’une connexion.

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

Paramètres

connection
HubConnectionContext

Connexion.

Retours

Task qui représente la connexion asynchrone.

S’applique à