AuthenticationWithTokenRefresh コンストラクター

定義

オーバーロード

AuthenticationWithTokenRefresh(Int32, Int32)

AuthenticationWithTokenRefresh クラスの新しいインスタンスを初期化します。

AuthenticationWithTokenRefresh(Int32, Int32, Boolean)

AuthenticationWithTokenRefresh クラスの新しいインスタンスを初期化します。

AuthenticationWithTokenRefresh(Int32, Int32)

AuthenticationWithTokenRefresh クラスの新しいインスタンスを初期化します。

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)

パラメーター

suggestedTimeToLiveSeconds
Int32

トークンの有効期間の提案値。 この抽象の実装では、この値を無視することを選択できます。

timeBufferPercentage
Int32

トークンを更新する必要がある有効期限前の時間バッファーは、有効期間に対する割合で表されます。

注釈

このコンストラクターは、関連付けられたデバイス/モジュール クライアント インスタンスが破棄されるときに破棄される認証方法インスタンスを作成します。 複数のクライアント インスタンスの有効期間にわたって認証方法インスタンスを再利用するには、 コンストラクターをAuthenticationWithTokenRefresh(Int32, Int32, Boolean)使用し、 を にfalse設定disposeWithClientします。

適用対象

AuthenticationWithTokenRefresh(Int32, Int32, Boolean)

AuthenticationWithTokenRefresh クラスの新しいインスタンスを初期化します。

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)

パラメーター

suggestedTimeToLiveSeconds
Int32

トークンの有効期間の提案値。 この抽象の実装では、この値を無視することを選択できます。

timeBufferPercentage
Int32

トークンを更新する必要がある有効期限前の時間バッファーは、有効期間に対する割合で表されます。

disposeWithClient
Boolean

適用対象