ChannelListenerBase.BeginWaitForChannel(TimeSpan, AsyncCallback, Object) Método
Definição
Quando implementada em uma classe derivada, inicia uma operação assíncrona para esperar pela chegada de um canal.When implemented in a derived class, begins an asynchronous operation to wait for a channel to arrive.
public:
virtual IAsyncResult ^ BeginWaitForChannel(TimeSpan timeout, AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginWaitForChannel (TimeSpan timeout, AsyncCallback callback, object state);
abstract member BeginWaitForChannel : TimeSpan * AsyncCallback * obj -> IAsyncResult
override this.BeginWaitForChannel : TimeSpan * AsyncCallback * obj -> IAsyncResult
Public Function BeginWaitForChannel (timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult
Parâmetros
- timeout
- TimeSpan
O TimeSpan que especifica quanto tempo esperar pela conclusão da operação wait for a channel até que ela atinja o tempo limite.The TimeSpan that specifies how long the wait for a channel operation has to complete before timing out.
- callback
- AsyncCallback
O delegado de AsyncCallback que recebe a notificação da conclusão da operação wait for a channel assíncrona.The AsyncCallback delegate that receives the notification of the asynchronous completion of the wait for a channel operation.
- state
- Object
Um objeto, especificado pelo aplicativo, que contém informações de estado associadas à operação wait for a channel assíncrona.An object, specified by the application, that contains state information associated with the asynchronous wait for a channel operation.
Retornos
Um IAsyncResult referencia a operação wait for a channel assíncrona.The IAsyncResult that references the asynchronous wait for a channel operation.
Implementações
Exceções
O ouvinte de canais não foi aberto e, portanto, não pode ser usado.The channel listener has not been opened and so cannot be used.