Udostępnij za pośrednictwem


HubClient.GetSessionIdAsync(CancellationToken) Method

Definition

Get session id. Session ID is a unique string that stays the same during dev hub session (life time of hub controller) and is different for different sessions.

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

Parameters

cancellationToken
CancellationToken

A cancellation token.

Returns

Applies to