internal static IManageReceiveChannels CreateChannelManager(ReadOnlySettings settings) { var channels = GatewaySettings.GetConfiguredChannels(settings); if (channels.Any()) { return(new ConfigurationBasedChannelManager(channels)); } return(new ConventionBasedChannelManager(settings.EndpointName())); }
public void SetUp() { channelManager = new ConfigurationBasedChannelManager(GatewaySettings.GetConfiguredChannels(new SettingsHolder())); activeChannels = channelManager.GetReceiveChannels(); defaultChannel = channelManager.GetDefaultChannel(); }