예제 #1
0
 /// <summary>
 /// Begins an asynchronous operation to close a communication object with a specified timeout.
 /// </summary>
 /// <returns>
 /// The <see cref="T:System.IAsyncResult"/> that references the asynchronous close operation.
 /// </returns>
 /// <param name="timeout">The <see cref="T:System.Timespan"/> that specifies how long the send operation has to complete before timing out.</param><param name="callback">The <see cref="T:System.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><exception cref="T:System.ServiceModel.CommunicationObjectFaultedException"><see cref="M:System.ServiceModel.ICommunicationObject.BeginClose"/> was called on an object in the <see cref="F:System.ServiceModel.CommunicationState.Faulted"/> state.</exception><exception cref="T:System.TimeoutException">The specified timeout elapsed before the <see cref="T:System.ServiceModel.ICommunicationObject"/> was able to close gracefully.</exception>
 public IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state)
 {
     return(ProxiedClient.BeginClose(timeout, callback, state));
 }
예제 #2
0
 /// <summary>
 /// Begins an asynchronous operation to close a communication object.
 /// </summary>
 /// <returns>
 /// The <see cref="T:System.IAsyncResult"/> that references the asynchronous close operation.
 /// </returns>
 /// <param name="callback">The <see cref="T:System.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><exception cref="T:System.ServiceModel.CommunicationObjectFaultedException"><see cref="M:System.ServiceModel.ICommunicationObject.BeginClose"/> was called on an object in the <see cref="F:System.ServiceModel.CommunicationState.Faulted"/> state.</exception><exception cref="T:System.TimeoutException">The default timeout elapsed before the <see cref="T:System.ServiceModel.ICommunicationObject"/> was able to close gracefully.</exception>
 public IAsyncResult BeginClose(AsyncCallback callback, object state)
 {
     return(ProxiedClient.BeginClose(callback, state));
 }