다음을 통해 공유


HubConnection.StopAsync(CancellationToken) 메서드

정의

서버에 대한 연결을 중지합니다.

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

매개 변수

cancellationToken
CancellationToken

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

반환

Task 비동기 중지를 나타내는 입니다.

적용 대상