ChannelFactoryBase.OnBeginClose(TimeSpan, AsyncCallback, Object) Méthode

Définition

Commence une opération asynchrone pour fermer chacun des canaux créés par la fabrique.

protected:
 override IAsyncResult ^ OnBeginClose(TimeSpan timeout, AsyncCallback ^ callback, System::Object ^ state);
protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state);
override this.OnBeginClose : TimeSpan * AsyncCallback * obj -> IAsyncResult
Protected Overrides Function OnBeginClose (timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult

Paramètres

timeout
TimeSpan

Qui TimeSpan spécifie la durée pendant laquelle l’opération de fermeture doit être terminée avant l’expiration du délai d’attente.

callback
AsyncCallback

Délégué AsyncCallback qui reçoit la notification de l’opération asynchrone à la fin de la fermeture.

state
Object

Objet, spécifié par l’application, qui contient des informations d’état associées à l’opération asynchrone lors de l’opération de fermeture.

Retours

Qui IAsyncResult fait référence à l’opération asynchrone lors de la fermeture.

S’applique à