HubLifetimeManager<THub>.OnConnectedAsync(HubConnectionContext) Método

Definição

Chamado quando uma conexão é iniciada.

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

Parâmetros

connection
HubConnectionContext

A conexão.

Retornos

Um Task que representa a conexão assíncrona.

Aplica-se a