다음을 통해 공유


HubConnection.StartAsync(CancellationToken) 메서드

정의

서버에 대한 연결을 시작합니다.

public System.Threading.Tasks.Task StartAsync (System.Threading.CancellationToken cancellationToken = default);
public virtual System.Threading.Tasks.Task StartAsync (System.Threading.CancellationToken cancellationToken = default);
member this.StartAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
abstract member StartAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.StartAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function StartAsync (Optional cancellationToken As CancellationToken = Nothing) As Task
Public Overridable Function StartAsync (Optional cancellationToken As CancellationToken = Nothing) As Task

매개 변수

cancellationToken
CancellationToken

취소 요청을 모니터링할 토큰입니다. 기본값은 None입니다.

반환

Task 비동기 시작을 나타내는 입니다.

적용 대상