다음을 통해 공유


HubLifetimeManager<THub>.OnConnectedAsync(HubConnectionContext) 메서드

정의

연결이 시작될 때 호출됩니다.

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

매개 변수

connection
HubConnectionContext

연결입니다.

반환

Task 비동기 연결을 나타내는 입니다.

적용 대상