Example #1
0
        public void PostInitializeComponents()
        {
            try
            {
                TerminologyLogger.GetLogger().Info("Engine extra component initializing...");
                this.FileRepo = new FileRepository(this.CoreConfig.GetConfigString("fileRepositoryConfig"));
                this.JreManager = new JreManager(this.CoreConfig.GetConfigString("jreManagerConfig"));
                this.InstanceManager = new InstanceManager(this.CoreConfig.GetConfigString("instanceManagerConfig"), this.FileRepo, this.JreManager);
                this.UpdateManager = new UpdateManager(this.CoreConfig.GetConfigString("updateManagerConfig"), this.CoreVersion, this.BuildVersion);
                TerminologyLogger.GetLogger().Info("Engine extra component initialized...");

            }
            catch (Exception ex)
            {
                TerminologyLogger.GetLogger()
                    .FatalFormat(
                        $"Enging encountered an fatal during post initialize. This exception caused by {ex.Message}. Launcher shuting down.\n Detail:{ex.ToString()}");
                throw;
            }
        }
Example #2
0
 public void PostInitializeComponents()
 {
     Logger.GetLogger().Info("Engine extra component initializing...");
     this.FileRepo = new FileRepository(this.CoreConfig.GetConfig("fileRepositoryConfig"));
     this.InstanceManager = new InstanceManager(this.CoreConfig.GetConfig("instanceManagerConfig"), this.FileRepo);
     this.UpdateManager = new UpdateManager(this.CoreConfig.GetConfig("updateManagerConfig"), this.CoreVersion);
     Logger.GetLogger().Info("Engine extra component initialized...");
 }