Пример #1
0
        public void Stop()
        {
            Check.Require(_started, "Service not started");

            if (listenMgr.OnStopping() == Cancelable.True)
            {
                return;
            }

            DoStop();
            _started = false;

            listenMgr.OnStopped();
        }