Beispiel #1
0
        private Broker GetBrokerConfiguration(EnterpriseIntegration configuration, string broker)
        {
            var brokerConfiguration = configuration.Brokers[broker];

            if (brokerConfiguration == null)
            {
                throw new ArgumentException(nameof(broker));
            }

            return(brokerConfiguration);
        }
Beispiel #2
0
 public ChannelFactory()
 {
     _configuration = ConfigurationManager.GetSection("EnterpriseIntegration") as EnterpriseIntegration;
 }
Beispiel #3
0
 public ChannelFactory(EnterpriseIntegration configuration)
 {
     _configuration = configuration;
 }