/// <summary> /// Overridden to stop the engine. /// </summary> protected override void DisposeCore() { base.DisposeCore(); if (_engine != null) { _engine.Stop(); _engine = null; } }
/// <summary> /// Overridden to stop the engine. /// </summary> protected override void DisposeCore() { base.DisposeCore(); if (_engine != null) { _engine.Stop(); _engine = null; } }
/// <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(); }