Share via


ServiceClientCredentialsFactory.IsAuthenticationDisabledAsync Method

Definition

Checks whether bot authentication is disabled.

public abstract System.Threading.Tasks.Task<bool> IsAuthenticationDisabledAsync (System.Threading.CancellationToken cancellationToken);
abstract member IsAuthenticationDisabledAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public MustOverride Function IsAuthenticationDisabledAsync (cancellationToken As CancellationToken) As Task(Of Boolean)

Parameters

cancellationToken
CancellationToken

A cancellation token.

Returns

A task that represents the work queued to execute.

Remarks

If the task is successful and bot authentication is disabled, the result is true; otherwise, false.

This method is async to enable custom implementations that may need to call out to serviced to validate the appId / password pair.

Applies to