Table of Contents

Interface ITokenProvider

Namespace
Microsoft.Azure.ServiceBus.Primitives
Assembly
Microsoft.Azure.ServiceBus.dll

Provides interface definition of a token provider.

public interface ITokenProvider

Methods

GetTokenAsync(string, TimeSpan)

Gets a SecurityToken.

Task<SecurityToken> GetTokenAsync(string appliesTo, TimeSpan timeout)

Parameters

appliesTo string

The URI which the access token applies to

timeout TimeSpan

The time span that specifies the timeout value for the message that gets the security token

Returns

Task<SecurityToken>

SecurityToken