public static BuiltComponents Build(SimpleProcessElement simpleConfig)
        {
            var counterElement = new ProcessElement(simpleConfig);
            var sourceConfig = new ProcessUptimeSourceConfiguration(new[] { counterElement });
            var source = ProcessUptimeSourceBuilder.Build(sourceConfig);

            return SimpleComponentBuilder.BuildStandardSinkSet(simpleConfig, source);
        }
        public void ProcessingCountingSource_CanBeConfiguredWithAConfigElement()
        {
            var config = new ProcessElement("testCounterId", "testCounter", "exe", "machine");

            var source = new ProcessCountingSource(config);

            Assert.AreEqual("testCounter", source.Name);
        }
 public ProcessUptimeSource(ProcessElement config)
     : this(config.Id, config.Name, config.Exe, config.MachineName)
 {
 }
 public ProcessCountingSource(ProcessElement config)
     : this(config.Id, config.Name, config.Exe, config.MachineName)
 {
 }
 public void Add(ProcessElement config)
 {
     base.BaseAdd(config, false);
 }