ServiceClientCredentialsFactory.IsValidAppIdAsync Method

Definition

Validates an app ID.

public abstract System.Threading.Tasks.Task<bool> IsValidAppIdAsync (string appId, System.Threading.CancellationToken cancellationToken);
abstract member IsValidAppIdAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public MustOverride Function IsValidAppIdAsync (appId As String, cancellationToken As CancellationToken) As Task(Of Boolean)

Parameters

appId
String

The app ID to validate.

cancellationToken
CancellationToken

A cancellation token.

Returns

A task that represents the work queued to execute.

Remarks

If the task is successful, the result is true if appId is valid for the controller; 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