/// <nodoc/> public MaterializationDaemon( IParser parser, DaemonConfig daemonConfig, MaterializationDaemonConfig materializationConfig, IIpcProvider rpcProvider = null, Client bxlClient = null) : base(parser, daemonConfig, !string.IsNullOrWhiteSpace(materializationConfig.LogDir) ? new FileLogger(materializationConfig.LogDir, LogFileName, daemonConfig.Moniker, logVerbose: true, MaterializationDaemonLogPrefix) : daemonConfig.Logger, rpcProvider, bxlClient) { m_config = materializationConfig; m_actionQueue = new ActionQueue(m_config.MaxDegreeOfParallelism); m_materializationStatus = new ConcurrentBigMap <string, bool>(); m_counters = new CounterCollection <MaterializationDaemonCounter>(); m_macros = new Dictionary <string, string> { ["$(build.nttree)"] = Environment.GetEnvironmentVariable("_NTTREE") }; m_logger.Info($"MaterializationDaemon config: {JsonConvert.SerializeObject(m_config)}"); m_logger.Info($"Defined macros (count={m_macros.Count}):{Environment.NewLine}{string.Join(Environment.NewLine, m_macros.Select(kvp => $"{kvp.Key}={kvp.Value}"))}"); }
/// <nodoc/> public MaterializationDaemon( IParser parser, DaemonConfig daemonConfig, MaterializationDaemonConfig materializationConfig, IIpcProvider rpcProvider = null, Client bxlClient = null) : base(parser, daemonConfig, !string.IsNullOrWhiteSpace(materializationConfig.LogDir) ? new FileLogger(materializationConfig.LogDir, LogFileName, daemonConfig.Moniker, logVerbose: true, MaterializationDaemonLogPrefix) : daemonConfig.Logger, rpcProvider, bxlClient) { }