/// <summary>
 /// Inputs the specified control processor config.
 /// </summary>
 /// <returns></returns>
 private ControlProcessorConfigurator CreateInput()
 {
     var uri = new Uri(_HermEsbServiceConfig.ControlProcessor.Input.Uri);
     _input = AgentGatewayFactory.CreateInputGateway<IControlMessage>(uri,
                                                                      _HermEsbServiceConfig.ControlProcessor.Input.Transport,
                                                                      _HermEsbServiceConfig.ControlProcessor.NumberOfParallelTasks,
                                                                      _HermEsbServiceConfig.ControlProcessor.MaxReijections);
     return this;
 }
        /// <summary>
        /// Inputs the specified control processor config.
        /// </summary>
        /// <returns></returns>
        private ControlProcessorConfigurator CreateInput()
        {
            var uri = new Uri(_HermEsbServiceConfig.ControlProcessor.Input.Uri);

            _input = AgentGatewayFactory.CreateInputGateway <IControlMessage>(uri,
                                                                              _HermEsbServiceConfig.ControlProcessor.Input.Transport,
                                                                              _HermEsbServiceConfig.ControlProcessor.NumberOfParallelTasks,
                                                                              _HermEsbServiceConfig.ControlProcessor.MaxReijections);
            return(this);
        }