Condividi tramite


AuthenticationWithTokenRefresh Constructors

Definition

Overloads

AuthenticationWithTokenRefresh(Int32, Int32)

Initializes a new instance of the AuthenticationWithTokenRefresh class.

AuthenticationWithTokenRefresh(Int32, Int32, Boolean)

Initializes a new instance of the AuthenticationWithTokenRefresh class.

AuthenticationWithTokenRefresh(Int32, Int32)

Initializes a new instance of the AuthenticationWithTokenRefresh class.

public AuthenticationWithTokenRefresh (int suggestedTimeToLiveSeconds, int timeBufferPercentage);
new Microsoft.Azure.Devices.Client.AuthenticationWithTokenRefresh : int * int -> Microsoft.Azure.Devices.Client.AuthenticationWithTokenRefresh
Public Sub New (suggestedTimeToLiveSeconds As Integer, timeBufferPercentage As Integer)

Parameters

suggestedTimeToLiveSeconds
Int32

Token time to live suggested value. The implementations of this abstract may choose to ignore this value.

timeBufferPercentage
Int32

Time buffer before expiry when the token should be renewed expressed as a percentage of the time to live.

Remarks

This constructor will create an authentication method instance that will be disposed when its associated device/ module client instance is disposed. To reuse the authentication method instance across multiple client instance lifetimes, use the AuthenticationWithTokenRefresh(Int32, Int32, Boolean) constructor and set disposeWithClient to false.

Applies to

AuthenticationWithTokenRefresh(Int32, Int32, Boolean)

Initializes a new instance of the AuthenticationWithTokenRefresh class.

public AuthenticationWithTokenRefresh (int suggestedTimeToLiveSeconds, int timeBufferPercentage, bool disposeWithClient);
new Microsoft.Azure.Devices.Client.AuthenticationWithTokenRefresh : int * int * bool -> Microsoft.Azure.Devices.Client.AuthenticationWithTokenRefresh
Public Sub New (suggestedTimeToLiveSeconds As Integer, timeBufferPercentage As Integer, disposeWithClient As Boolean)

Parameters

suggestedTimeToLiveSeconds
Int32

Token time to live suggested value. The implementations of this abstract may choose to ignore this value.

timeBufferPercentage
Int32

Time buffer before expiry when the token should be renewed expressed as a percentage of the time to live.

disposeWithClient
Boolean

Applies to