Ejemplo n.º 1
0
        private void Pipeline_OnPipelineError(object sender, PipelineErrorEventArgs e)
        {
            if (e.Error != null)
            {
                logger?.LogError(e.Error, "Pipe error.");
                logger?.LogWarning("Disposing pipeline.");
            }

            if (pipelines.ContainsKey(e.Id))
            {
                Pipeline pipeline = pipelines[e.Id];
                pipelines.Remove(e.Id);
                try
                {
                    pipeline.Dispose();
                }
                catch (Exception ex)
                {
                    logger?.LogError(ex, "Fault disposing pipeline.");
                }
            }
            else
            {
                logger?.LogWarning("Pipeline not identified to dispose.");
            }
        }
Ejemplo n.º 2
0
 private void Pipeline_OnPipelineError(object sender, PipelineErrorEventArgs e)
 {
     logger?.LogError(e.Error, "Fault in module pipeline.");
     BuildPipeline();
 }