Ejemplo n.º 1
0
        /// <summary>
        /// Stops the management service.
        /// </summary>
        public void StopService()
        {
            // stop comm manager
            if (commManager != null)
            {
                try
                {
                    commManager.Stop();
                    commManager = null;
                }
                catch (ThreadAbortException tae)
                {
                    Messages.StackTrace(tae, false);
                }
            }

            // delete process lock file
            File.Delete(lockFile);
            Messages.Trace("stopped service");
        }