Table of Contents

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 object

A state object, which can be of any type.

cancellationToken CancellationToken

A cancellation token to receive the cancellation signal.

Returns

Task<NewTokenAndFrequency>

Constructors

RenewTokenFuncAsync(object, nint)

public RenewTokenFuncAsync(object @object, nint method)

Parameters

object object
method nint

Methods

BeginInvoke(object, CancellationToken, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(object state, CancellationToken cancellationToken, AsyncCallback callback, object @object)

Parameters

state object
cancellationToken CancellationToken
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual Task<NewTokenAndFrequency> EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Returns

Task<NewTokenAndFrequency>

Invoke(object, CancellationToken)

public virtual Task<NewTokenAndFrequency> Invoke(object state, CancellationToken cancellationToken)

Parameters

state object
cancellationToken CancellationToken

Returns

Task<NewTokenAndFrequency>