Beispiel #1
0
        static void CheckForNonWildcardDefaultChannel(IManageReceiveChannels channelManager)
        {
            var defaultChannel = channelManager.GetDefaultChannel();

            if (defaultChannel.Address.Contains("*") || defaultChannel.Address.Contains("+"))
            {
                throw new Exception($"Default channel {defaultChannel.Address} is using a wildcard uri. Please add an extra channel with a fully qualified non-wildcard uri in order for replies to be transmitted properly.");
            }
        }
Beispiel #2
0
        public void SetUp()
        {
            var section = ConfigurationManager.GetSection(typeof(GatewayConfig).Name) as GatewayConfig;


            config = new ConfigurationBasedChannelManager
            {
                ReceiveChannels = section.GetChannels().ToList()
            };

            activeChannels = config.GetReceiveChannels();
            defaultChannel = config.GetDefaultChannel();
        }
        public void SetUp()
        {

            var section = ConfigurationManager.GetSection(typeof(GatewayConfig).Name) as GatewayConfig;


            config = new ConfigurationBasedChannelManager
            {
                ReceiveChannels = section.GetChannels().ToList()
            };

            activeChannels = config.GetReceiveChannels();
            defaultChannel = config.GetDefaultChannel();

        }
 public void SetUp()
 {
     config = new ConfigurationBasedChannelManager();
     activeChannels = config.GetReceiveChannels();
     defaultChannel = config.GetDefaultChannel();
 }
Beispiel #5
0
 public void SetUp()
 {
     config         = new ConfigurationBasedChannelManager();
     activeChannels = config.GetReceiveChannels();
     defaultChannel = config.GetDefaultChannel();
 }