/// <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(); }
/// <summary> /// Causes a communication object to transition from its current state into the closed state. /// </summary> public void CloseCommunicationObject() { ProxiedClient.Close(); }
/// <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); }