Compartir a través de


ServiceClientCredentialsFactory.CreateCredentialsAsync Método

Definición

Método de fábrica para crear ServiceClientCredentials.

public abstract System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials> CreateCredentialsAsync (string appId, string audience, string loginEndpoint, bool validateAuthority, System.Threading.CancellationToken cancellationToken);
abstract member CreateCredentialsAsync : string * string * string * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials>
Public MustOverride Function CreateCredentialsAsync (appId As String, audience As String, loginEndpoint As String, validateAuthority As Boolean, cancellationToken As CancellationToken) As Task(Of ServiceClientCredentials)

Parámetros

appId
String

AppId.

audience
String

El público.

loginEndpoint
String

Dirección URL de inicio de sesión.

validateAuthority
Boolean

Vale de autoridad de validación que se va a usar.

cancellationToken
CancellationToken

Token de cancelación.

Devoluciones

Task<Microsoft.Rest.ServiceClientCredentials>

que Task<TResult> representa el resultado de la operación asincrónica.

Se aplica a