Delegate RenewTokenFuncAsync
- Namespace
- Microsoft.WindowsAzure.Storage.Auth
- Assembly
- Microsoft.WindowsAzure.Storage.dll
This type of delegate is used to update the token credential periodically.
public delegate Task<NewTokenAndFrequency> RenewTokenFuncAsync(object state, CancellationToken cancellationToken)
Parameters
state
objectA state object, which can be of any type.
cancellationToken
CancellationTokenA cancellation token to receive the cancellation signal.
Returns
Constructors
RenewTokenFuncAsync(object, nint)
public RenewTokenFuncAsync(object @object, nint method)
Parameters
Methods
BeginInvoke(object, CancellationToken, AsyncCallback, object)
public virtual IAsyncResult BeginInvoke(object state, CancellationToken cancellationToken, AsyncCallback callback, object @object)
Parameters
state
objectcancellationToken
CancellationTokencallback
AsyncCallbackobject
object
Returns
EndInvoke(IAsyncResult)
public virtual Task<NewTokenAndFrequency> EndInvoke(IAsyncResult result)
Parameters
result
IAsyncResult
Returns
Invoke(object, CancellationToken)
public virtual Task<NewTokenAndFrequency> Invoke(object state, CancellationToken cancellationToken)
Parameters
state
objectcancellationToken
CancellationToken