Esempio n. 1
0
 public SendPipelineException(AbstractSendPipeline pipeline, AbstractPipelineComponent pipelineComponent, IEnvelope envelope, Exception exception)
     :base(string.Format(m_error_message, pipeline.Name, envelope.Header.InputChannel,  pipelineComponent.Name,  exception.ToString()))
 {
     Pipeline = pipeline;
     PipelineComponent = pipelineComponent;
     Envelope = envelope;
     Exception = exception;
 }
Esempio n. 2
0
        public bool OnComponentError(AbstractPipelineComponent component, IEnvelope message, Exception exception)
        {
            EventHandler<PipelineComponentErrorEventArgs> evt = this.PipelineComponentError;
            var isHandlerAttached = (evt != null);

            if(isHandlerAttached)
                evt(component, new PipelineComponentErrorEventArgs(component, message, exception));

            return isHandlerAttached;
        }
Esempio n. 3
0
 public ReceivePipelineComponentInvokedEventArgs(AbstractPipelineComponent component,   IEnvelope envelope)
 {
     PipelineComponent = component;
     Envelope = envelope;
 }
Esempio n. 4
0
 public void OnComponentCompleted(AbstractPipelineComponent component, IEnvelope message)
 {
     EventHandler<PipelineComponentCompletedEventArgs> evt = this.PipelineComponentCompleted;
     if (evt != null)
         evt(component, new PipelineComponentCompletedEventArgs(component, message));
 }