/// <summary> /// Called when the parent service is iterating through all services to signal them they can start. /// Overridden to start the engine immediately. /// </summary> public override void OnStart() { base.OnStart(); ISettingsServiceInternal settings = this.ServiceProvider.GetService <ISettingsServiceInternal>(); Configuration configuration = LoadConfiguration(settings); _engine = new AlarmWorkflowEngine(configuration, this.ServiceProvider, settings); _engine.Start(); }
/// <summary> /// Called when the parent service is iterating through all services to signal them they can start. /// Overridden to start the engine immediately. /// </summary> public override void OnStart() { base.OnStart(); ISettingsServiceInternal settings = this.ServiceProvider.GetService<ISettingsServiceInternal>(); Configuration configuration = LoadConfiguration(settings); _engine = new AlarmWorkflowEngine(configuration, this.ServiceProvider, settings); _engine.Start(); }
/// <summary> /// Called when the parent service is iterating through all services to signal them they can start. /// Overridden to start the engine immediately. /// </summary> public override void OnStart() { base.OnStart(); ISettingsServiceInternal settings = ServiceProvider.GetService <ISettingsServiceInternal>(); Configuration configuration = LoadConfiguration(settings); AddInternalService(typeof(IAlarmFilter), new AlarmFilter() { Configuration = configuration }); _engine = new AlarmWorkflowEngine(configuration, ServiceProvider, settings); _engine.Start(); }