public ApplicationContext() { //Must have for initialize, //because this is global manager of all objects in that case DozeObjectManager.Instantiate(); CurrentApplicationVersion = ApplicationDeployment.IsNetworkDeployed ? ApplicationDeployment.CurrentDeployment.CurrentVersion : Assembly.GetExecutingAssembly().GetName().Version; ApplicationName = "Doze Server"; ExternalSettings = Create <ExternalSettingsObject>(); ExternalSettings.Load(); VOM = Create <WindowsObject>(); Journal = Create <JournalObject>(); Journal.Run(false); Terminal = Create <TerminalObject>(); Database = Create <DatabaseObject>(); Network = Create <NetworkObject>(); Database.Init(); Network.Initialize(); }
public static void Run() { DozeObjectManager.Instantiate(); m_IsForceDebugMode = false; DozeObject.Create <WindowsObject>(); DozeObject.Create <CoreErrorObject>(); DozeObject.Create <HardwareObject>(); DozeObject.Create <NetworkClientObject>(); }
public override void Destroy() => DozeObjectManager.Stop();