public void Close() { if (State != CommunicationState.Opened) { return; } try { Closing(this, EventArgs.Empty); m_ServiceHostActivator.Close(); State = CommunicationState.Closed; Closed(this, EventArgs.Empty); } catch { State = CommunicationState.Faulted; } }
public void Close() { m_ServiceHostActivator.Close(); }