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; }
public ReceivePipelineStartedEventArgs(AbstractReceivePipeline pipeline, IEnvelope envelope) { Pipeline = pipeline; Envelope = envelope; }
public ReceivePipelineErrorEventArgs(AbstractReceivePipeline pipeline, IEnvelope envelope, Exception exception) { Pipeline = pipeline; Envelope = envelope; Exception = exception; }