SecurityTokenProvider.BeginGetToken(TimeSpan, AsyncCallback, Object) Método

Definição

Inicia uma operação assíncrona para obter um token de segurança.Begins an asynchronous operation to get a security token.

public:
 IAsyncResult ^ BeginGetToken(TimeSpan timeout, AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginGetToken (TimeSpan timeout, AsyncCallback callback, object state);
member this.BeginGetToken : TimeSpan * AsyncCallback * obj -> IAsyncResult
Public Function BeginGetToken (timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult

Parâmetros

timeout
TimeSpan

Um TimeSpan que especifica o valor de tempo limite da mensagem que obtém o token de segurança.A TimeSpan that specifies the timeout value for the message that gets the security token.

callback
AsyncCallback

O delegado AsyncCallback que recebe a notificação da conclusão da operação de fechamento assíncrona.The AsyncCallback delegate that receives notification of the completion of the asynchronous close operation.

state
Object

Um objeto, especificado pelo aplicativo, que contém informações de estado associadas à operação de fechamento assíncrona.An object, specified by the application, that contains state information associated with the asynchronous close operation.

Retornos

IAsyncResult

O IAsyncResult que faz referência à operação de fechamento assíncrona.The IAsyncResult that references the asynchronous close operation.

Comentários

O BeginGetToken método chama o BeginGetTokenCore método.The BeginGetToken method calls the BeginGetTokenCore method.

Notas aos Herdeiros

Os métodos assíncronos, que têm um prefixo de Begin e end, não precisam ser substituídos em classes derivadas.The asynchronous methods, which have a prefix of Begin and End, do not need to be overridden in derived classes. A SecurityTokenProvider classe base fornece uma implementação assíncrona baseada nos métodos síncronos.The SecurityTokenProvider base class provides an asynchronous implementation that is based on the synchronous methods.

Aplica-se a