SALES: 1-800-867-1380

TokenProvider Constructor (Boolean, Boolean, Int32, TokenScope)

Initializes a new instance of the TokenProvider class.

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

'Declaration
Protected Sub New ( _
	cacheTokens As Boolean, _
	supportHttpAuthToken As Boolean, _
	cacheSize As Integer, _
	tokenScope As TokenScope _
)
'Usage
Dim cacheTokens As Boolean 
Dim supportHttpAuthToken As Boolean 
Dim cacheSize As Integer 
Dim tokenScope As TokenScope 

Dim instance As New TokenProvider(cacheTokens, _
	supportHttpAuthToken, cacheSize, _
	tokenScope)

Parameters

cacheTokens
Type: System.Boolean
true if new security tokens are being cached; otherwise, false.
supportHttpAuthToken
Type: System.Boolean
true if web token is supported by this provider; otherwise, false.
cacheSize
Type: System.Int32
The size of the cache.
tokenScope
Type: Microsoft.ServiceBus.TokenScope
The token scope associated with the provider.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft