Esempio n. 1
0
        public void Shutdown()
        {
            ActiveScenario.Shutdown();
            ActiveScenario = null;

            ShutdownNetwork();

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

            LANDiscoveryHost.Shutdown();

            ServiceInfo = null;
        }
Esempio n. 2
0
        public void Startup(ServerStartupInfo info)
        {
            StartupInfo = info;

            ActiveScenario = info.SelectedScenario.Scenario as LLScenario;
            if (ActiveScenario == null)
            {
                return;
            }

            string variationName = string.Empty;

            if (info.SelectedVariation != null)
            {
                variationName = info.SelectedVariation.Name;
            }

            ActiveScenario.Init(variationName);

            Register();

            Listen(info.Port);
        }