Share via


ModuleAuthenticationWithTokenRefresh Constructors

Definition

Overloads

ModuleAuthenticationWithTokenRefresh(String, String)

Initializes a new instance of the ModuleAuthenticationWithTokenRefresh class using default TTL and TTL buffer time settings.

ModuleAuthenticationWithTokenRefresh(String, String, Int32, Int32)

Initializes a new instance of the ModuleAuthenticationWithTokenRefresh class.

ModuleAuthenticationWithTokenRefresh(String, String)

Initializes a new instance of the ModuleAuthenticationWithTokenRefresh class using default TTL and TTL buffer time settings.

public ModuleAuthenticationWithTokenRefresh(string deviceId, string moduleId);
new Microsoft.Azure.Devices.Client.ModuleAuthenticationWithTokenRefresh : string * string -> Microsoft.Azure.Devices.Client.ModuleAuthenticationWithTokenRefresh
Public Sub New (deviceId As String, moduleId As String)

Parameters

deviceId
System.String

The Id of the device.

moduleId
System.String

The Id of the module.

Applies to

ModuleAuthenticationWithTokenRefresh(String, String, Int32, Int32)

Initializes a new instance of the ModuleAuthenticationWithTokenRefresh class.

public ModuleAuthenticationWithTokenRefresh(string deviceId, string moduleId, int suggestedTimeToLiveSeconds, int timeBufferPercentage);
new Microsoft.Azure.Devices.Client.ModuleAuthenticationWithTokenRefresh : string * string * int * int -> Microsoft.Azure.Devices.Client.ModuleAuthenticationWithTokenRefresh
Public Sub New (deviceId As String, moduleId As String, suggestedTimeToLiveSeconds As Integer, timeBufferPercentage As Integer)

Parameters

deviceId
System.String

The device Id.

moduleId
System.String

The module Id.

suggestedTimeToLiveSeconds
System.Int32

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

timeBufferPercentage
System.Int32

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

Applies to