public void AllPluginsStarted(TaskCompletionSource <bool> AllPluginsStartedSink) { // other plugins have had time to register their nancy modules // start the host now log.Info("Initializing WebManager..."); WebAPIGlobal.ResultOfHostRunSink = AllPluginsStartedSink; WebManager.Initialize(); }
void Start() { //Room for manuevers: perhaps scene-based initialization, etc _InputManager.Initialize(true); _FieldManager.Initialize(true); _UImanager.Initialize(true); _SerializationManager.Initialize(); _WebManager.Initialize(); }
public static void BeforeAutomationRun() { WebManager.Initialize(); }
/// <summary> /// Initializes this instance. /// </summary> public static void Initialize(int serviceNodeType, NetMessageManager messageManager, string[] args) { ServiceCore.ServiceNodeType = serviceNodeType; ServiceCore.ServiceEnvironment = "internal"; ServiceCore.ConfigurationServer = "http://127.0.0.1/"; ServiceCore.ServiceNodeId = 0; if (args.Length > 0) { if (args.Length % 2 == 0) { for (int i = 0; i < args.Length; i += 2) { string name = args[i]; string value = args[i + 1]; switch (name) { case "-env": if (!value.Equals("integration") && !value.StartsWith("integration-") && !value.Equals("stage") && !value.Equals("prod") && !value.Equals("internal") && !value.Equals("content-stage")) { Logging.Warning("ServiceCore::initialize unknown server environment: " + ServiceCore.ServiceEnvironment); } ServiceCore.ServiceEnvironment = value; break; case "-conf": if (value.Length > 0) { if (value.StartsWith("http://") || value.StartsWith("https://")) { if (!value.EndsWith("/")) { value += "/"; } ServiceCore.ConfigurationServer = value; } else { Logging.Warning("ServiceCore::initialize invalid server url: " + value); } } else { Logging.Warning("ServiceCore::initialize server url is empty"); } break; case "-id": ServiceCore.ServiceNodeId = int.Parse(value); break; default: Logging.Warning("ServiceCore::initialize invalid args name"); break; } } } else { Logging.Warning("ServiceCore::initialize invalid args length"); } } WebManager.Initialize(); ServiceCore.InitConfig(); ServiceCore.InitLogic(); ServiceCore.InitNet(messageManager); }