Beispiel #1
0
 /// <summary>
 /// Begins an asynchronous operation to close a communication object.
 /// </summary>
 /// <param name="callback">
 /// The <see cref="AsyncCallback" /> delegate that receives notification of the completion of the asynchronous
 /// close operation.
 /// </param>
 /// <param name="state">
 /// An object, specified by the application, that contains state information associated with the asynchronous
 /// close operation.
 /// </param>
 /// <returns>The <see cref="IAsyncResult" /> that references the asynchronous close operation.</returns>
 IAsyncResult ICommunicationObject.BeginClose(AsyncCallback callback, object state)
 {
     return(RequestChannel.BeginClose(callback, state));
 }
Beispiel #2
0
 /// <summary>
 /// Begins an asynchronous operation to close a communication object with a specified timeout.
 /// </summary>
 /// <param name="timeout">
 /// The <see cref="TimeSpan" /> that specifies how long the close operation has to complete before timing out.
 /// </param>
 /// <param name="callback">
 /// The <see cref="AsyncCallback" /> delegate that receives notification of the completion of the asynchronous
 /// close operation.
 /// </param>
 /// <param name="state">
 /// An object, specified by the application, that contains state information associated with the asynchronous
 /// close operation.
 /// </param>
 /// <returns>The <see cref="IAsyncResult" /> that references the asynchronous close operation.</returns>
 IAsyncResult ICommunicationObject.BeginClose(TimeSpan timeout, AsyncCallback callback, object state)
 {
     return(RequestChannel.BeginClose(timeout, callback, state));
 }