Udostępnij za pośrednictwem


TokenCredential Constructors

Definition

Overloads

TokenCredential(String)

Create an instance of TokenCredential.

TokenCredential(String, RenewTokenFuncAsync, Object, TimeSpan)

Create an instance of TokenCredential.

TokenCredential(String)

Create an instance of TokenCredential.

public TokenCredential (string initialToken);
new Microsoft.Azure.Storage.Auth.TokenCredential : string -> Microsoft.Azure.Storage.Auth.TokenCredential
Public Sub New (initialToken As String)

Parameters

initialToken
String

Initial value of the token credential.

Applies to

TokenCredential(String, RenewTokenFuncAsync, Object, TimeSpan)

Create an instance of TokenCredential.

public TokenCredential (string initialToken, Microsoft.Azure.Storage.Auth.RenewTokenFuncAsync periodicTokenRenewer, object state, TimeSpan renewFrequency);
new Microsoft.Azure.Storage.Auth.TokenCredential : string * Microsoft.Azure.Storage.Auth.RenewTokenFuncAsync * obj * TimeSpan -> Microsoft.Azure.Storage.Auth.TokenCredential
Public Sub New (initialToken As String, periodicTokenRenewer As RenewTokenFuncAsync, state As Object, renewFrequency As TimeSpan)

Parameters

initialToken
String

Initial value of the token credential.

periodicTokenRenewer
RenewTokenFuncAsync

If given, this delegate is called periodically to renew the token credential.

state
Object

A state object is passed to the periodicTokenRenewer every time it is called.

renewFrequency
TimeSpan

If periodicTokenRenewer is given, user should define a frequency to call the periodicTokenRenewer.

Applies to