Beispiel #1
0
        protected override void OnStop()
        {
            if (_statsd != null)
            {
                _statsd.Stop();
                _statsd.ShutdownWaitHandle.WaitOne();
            }

            if (_config != null)
            {
                _config.Dispose();
                _config = null;
            }
        }
Beispiel #2
0
        public bool Stop(HostControl host)
        {
            if (_statsd != null)
            {
                _statsd.Stop();
                _statsd.ShutdownWaitHandle.WaitOne();
            }

            if (_config != null)
            {
                _config.Dispose();
                _config = null;
            }

            return(true);
        }