Compartilhar via


RedisHubLifetimeManager<THub>.OnConnectedAsync Método

Definição

Chamado quando uma conexão é iniciada.

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

Parâmetros

connection
HubConnectionContext

A conexão.

Retornos

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

Aplica-se a