AuthenticationWithTokenRefresh Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기