コード例 #1
0
 /// <summary>
 /// Causes a communication object to transition from its current state into the closed state.
 /// </summary>
 /// <exception cref="T:System.ServiceModel.CommunicationObjectFaultedException"><see cref="M:System.ServiceModel.ICommunicationObject.Close"/> was called on an object in the <see cref="F:System.ServiceModel.CommunicationState.Faulted"/> state.</exception><exception cref="T:System.TimeoutException">The default close timeout elapsed before the <see cref="T:System.ServiceModel.ICommunicationObject"/> was able to close gracefully.</exception>
 public void Close()
 {
     ProxiedClient.Close();
 }
コード例 #2
0
 /// <summary>
 /// Causes a communication object to transition from its current state into the closed state.
 /// </summary>
 public void CloseCommunicationObject()
 {
     ProxiedClient.Close();
 }
コード例 #3
0
 /// <summary>
 /// Causes a communication object to transition from its current state into the closed state.
 /// </summary>
 /// <param name="timeout">The <see cref="T:System.Timespan"/> that specifies how long the send operation has to complete before timing out.</param><exception cref="T:System.ServiceModel.CommunicationObjectFaultedException"><see cref="M:System.ServiceModel.ICommunicationObject.Close"/> was called on an object in the <see cref="F:System.ServiceModel.CommunicationState.Faulted"/> state.</exception><exception cref="T:System.TimeoutException">The timeout elapsed before the <see cref="T:System.ServiceModel.ICommunicationObject"/> was able to close gracefully.</exception>
 public void Close(TimeSpan timeout)
 {
     ProxiedClient.Close(timeout);
 }