Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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;
            }
        }