Beispiel #1
0
        public void StopService()
        {
            if (_service == null)
            {
                return;
            }

            while (_service.State != CommunicationState.Closed && _service.State != CommunicationState.Closing)
            {
                try
                {
                    _service.Close();
                }
                catch (Exception)
                {
                }
            }
        }