public Scheduler(Manager manager, Configuration cfg) { if (_mgr == null) _mgr = manager; _cfg = cfg; }
public Archiver(Manager manager, Configuration cfg) { if (_mgr == null) _mgr = manager; _cfg = cfg; _shouldStop = false; }
public Analyzer(Manager manager) { if (mgr == null) mgr = manager; cfg = mgr.GetConfiguration(); _dataQueue = new ConcurrentQueue<ProbeResultsDataMessage>(); }
// constructor public Writer(Manager manager, Configuration cfg) { if (_mgr == null) _mgr = manager; _cfg = cfg; _dataQueue = new ConcurrentQueue<ProbeResultsDataMessage>(); }
public void Initialize() { // Read side-by-side configuration file _logger.Debug("Reading configuration"); _cfg = new Configuration(this); _cfg.ReadConfigFromFile(); // Start watchdog if ReadConfig was successfull // It will start the rest of the threads _logger.Debug("Starting Watchdog thread"); Thread _watchdogThread = new Thread(this.Watchdog); _watchdogThread.Name = "Watchdog"; _threads.Add(_watchdogThread.Name, _watchdogThread); _watchdogThread.Start(); }
public WebServer(Manager manager, Configuration cfg) { _mgr = manager; _cfg = cfg; _rootFolder = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), Configuration.wsRootFolder)); }
public DashboardRequestProcessor(Configuration cfg) : base(cfg) { _logger = LogManager.GetLogger("DashboardRequestProcessor"); }
public ConfigurationRequestProcessor(Configuration cfg) : base(cfg) { _logger = LogManager.GetLogger("ConfigurationRequestProcessor"); }
public WebService(Configuration config) { _cfg = config; }