Table of Contents

Delegate AzureActiveDirectoryTokenProvider.AuthenticationCallback

Namespace
Microsoft.ServiceBus
Assembly
Microsoft.ServiceBus.dll

The authentication delegate to provide access token.

public delegate Task<string> AzureActiveDirectoryTokenProvider.AuthenticationCallback(string audience, string authority, object state)

Parameters

audience string

The service resource URI for token acquisition.

authority string

Address of the authority to issue token.

state object

State to be delivered to callback.

Returns

Task<string>

Constructors

AuthenticationCallback(object, nint)

public AuthenticationCallback(object @object, nint method)

Parameters

object object
method nint

Methods

BeginInvoke(string, string, object, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(string audience, string authority, object state, AsyncCallback callback, object @object)

Parameters

audience string
authority string
state object
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual Task<string> EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Returns

Task<string>

Invoke(string, string, object)

public virtual Task<string> Invoke(string audience, string authority, object state)

Parameters

audience string
authority string
state object

Returns

Task<string>