Example #1
0
        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;
            }
        }
Example #2
0
 public void Close()
 {
     m_ServiceHostActivator.Close();
 }