Condividi tramite


ServiceClientCredentialsFactory.CreateCredentialsAsync Metodo

Definizione

Metodo factory per la creazione di 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)

Parametri

appId
String

AppId.

audience
String

Pubblico.

loginEndpoint
String

URL di accesso.

validateAuthority
Boolean

L'autorità di convalida vale da usare.

cancellationToken
CancellationToken

Token di annullamento.

Restituisce

Task<Microsoft.Rest.ServiceClientCredentials>

Oggetto Task<TResult> che rappresenta il risultato dell'operazione asincrona.

Si applica a