コード例 #1
0
ファイル: ChannelFactory.cs プロジェクト: j-wojcik/enterprise
        private Broker GetBrokerConfiguration(EnterpriseIntegration configuration, string broker)
        {
            var brokerConfiguration = configuration.Brokers[broker];

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

            return(brokerConfiguration);
        }
コード例 #2
0
ファイル: ChannelFactory.cs プロジェクト: j-wojcik/enterprise
 public ChannelFactory()
 {
     _configuration = ConfigurationManager.GetSection("EnterpriseIntegration") as EnterpriseIntegration;
 }
コード例 #3
0
ファイル: ChannelFactory.cs プロジェクト: j-wojcik/enterprise
 public ChannelFactory(EnterpriseIntegration configuration)
 {
     _configuration = configuration;
 }