Beispiel #1
0
        private InputPort CreatePort(AbstractReceivePipeline pipeline,
            string channel, string uri,
            string concurrency, string frequency, string scheduled)
        {
            InputPort port = null;
            var value = 0;

            if (!string.IsNullOrEmpty(scheduled))
            {
                if (Int32.TryParse(scheduled, out value))
                    port = new InputPort(pipeline, channel, uri, value);
            }
            else
            {
                var parsedConcurrency = 1;
                var parsedFrequency = 1;

                if (!string.IsNullOrEmpty(concurrency))
                    if (Int32.TryParse(concurrency, out parsedConcurrency)) ;

                if (!string.IsNullOrEmpty(frequency))
                    if (Int32.TryParse(frequency, out parsedFrequency)) ;

                port = new InputPort(pipeline, channel, uri, parsedConcurrency, parsedFrequency);
            }

            return port;
        }
Beispiel #2
0
 public ReceivePipelineStartedEventArgs(AbstractReceivePipeline pipeline, IEnvelope envelope)
 {
     Pipeline = pipeline;
     Envelope = envelope;
 }
Beispiel #3
0
 public ReceivePipelineErrorEventArgs(AbstractReceivePipeline pipeline, IEnvelope envelope, Exception exception)
 {
     Pipeline = pipeline;
     Envelope = envelope;
     Exception = exception;
 }