public void Shutdown() { ActiveScenario.Shutdown(); ActiveScenario = null; ShutdownNetwork(); if (ServiceInfo != null) { ServiceList.RemoveLocalService(); } LANDiscoveryHost.Shutdown(); ServiceInfo = null; }
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); }