//----------------------------------------------------------------------------------------------------------------------------------------------------- private static void LoadNodeHostConfig() { s_Log.Debug("Loading {0}", BootConfiguration.DefaultBootConfigFileName); s_BootConfig = BootConfiguration.LoadFromFile(PathUtility.LocalBinPath(BootConfiguration.DefaultBootConfigFileName)); s_BootConfig.Validate(); s_Log.Info(s_BootConfig.ToLogString()); }
//----------------------------------------------------------------------------------------------------------------------------------------------------- private static void LoadBootConfig(string[] programArgs) { var configFilePath = PathUtility.LocalBinPath(programArgs.Length > 0 ? programArgs[0] : BootConfiguration.DefaultBootConfigFileName); _s_log.Debug("Loading configuration from: {0}", configFilePath); _s_bootConfig = BootConfiguration.LoadFromFile(configFilePath); _s_bootConfig.Validate(); _s_log.Debug("> Application Name - {0}", _s_bootConfig.ApplicationName); _s_log.Debug("> Node Name - {0}", _s_bootConfig.NodeName); foreach ( var module in _s_bootConfig.FrameworkModules ) { _s_log.Debug("> Framework Module - {0}", module.Name); } foreach ( var module in _s_bootConfig.ApplicationModules ) { _s_log.Debug("> Application Module - {0}", module.Name); } }