public void SetDefaultValues() { var notificationInfo = new EmailNotification(); notificationInfo.SetDefaultValues(); this.NotificationInfos.Clear(); this.NotificationInfos.Add(notificationInfo); var pipelineInfo = new PipelineInfo(); pipelineInfo.SetDefaultValues(); this.PipelineInfos.Clear(); this.PipelineInfos.Add(pipelineInfo); }
public void PipelineThread(PipelineInfo pipelineInfo) { try { var fileName = Path.Combine(this.ConfigPath, pipelineInfo.FileName); var pipeline = Pipeline.Load(fileName); pipeline.ExecutePipeline(); this.RunningPipelines.Add(pipeline, Thread.CurrentThread); LogManager.Instance.LogNamedDebugFormat(this.Name, this.GetType(), "Pipeline '{0}' started", pipelineInfo.Name); } catch (Exception ex) { LogManager.Instance.LogNamedError(this.Name, this.GetType(), ex.ToString()); // throw; } }