HubClient.GetSessionIdAsync(CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.