Ejemplo n.º 1
0
        private void ShutdownNetwork()
        {
            LANDiscoveryHost.Shutdown();

            Running = false;

            lock (Locker)
            {
                WorkerThread?.Abort();
                WorkerThread = null;
            }

            Server.Shutdown("BYE!");
        }
Ejemplo n.º 2
0
        public void Shutdown()
        {
            ActiveScenario.Shutdown();
            ActiveScenario = null;

            ShutdownNetwork();

            if (ServiceInfo != null)
            {
                ServiceList.RemoveLocalService();
            }

            LANDiscoveryHost.Shutdown();

            ServiceInfo = null;
        }