public MonitorService(
     IMonitorRun monitorRun, 
     MonitorConfigurationSection configurationSection)
 {
     this.configurationSection = configurationSection;
     timer = new Timer(state => monitorRun.Run());
 }
Exemple #2
0
 public MonitorService(
     IMonitorRun monitorRun,
     MonitorConfigurationSection configurationSection)
 {
     this.configurationSection = configurationSection;
     timer = new Timer(state => monitorRun.Run());
 }
Exemple #3
0
 private static IEnumerable<Broker> GetBrokers(MonitorConfigurationSection configuration)
 {
     return configuration.Brokers.Cast<object>().Cast<Broker>();
 }
Exemple #4
0
 private static IEnumerable <Broker> GetBrokers(MonitorConfigurationSection configuration)
 {
     return(configuration.Brokers.Cast <object>().Cast <Broker>());
 }