SALES: 1-800-867-1380

TokenProvider.GetTokenAsync Method

Asynchronously retrieves the token for the provider.

Namespace:  Microsoft.ServiceBus
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)

public Task<SecurityToken> GetTokenAsync(
	string appliesTo,
	string action,
	bool bypassCache,
	TimeSpan timeout
)

Parameters

appliesTo
Type: System.String
The URI which the access token applies to.
action
Type: System.String
The request action.
bypassCache
Type: System.Boolean
true to ignore existing token information in the cache; false to use the token information in the cache.
timeout
Type: System.TimeSpan
The time span that specifies the timeout value for the message that gets the security token.

Return Value

Type: System.Threading.Tasks.Task<SecurityToken>
The result of the asynchronous operation.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft