src/MessagingConfig.cs
/// <summary>
/// Gets the instance of an <see cref="IBrokerConfig"/> related to the queue name.
/// If the queue doesn't exist in the configuration, the default broker will be used.
/// </summary>
Gets the instance of an  related to the queue name.
If the queue doesn't exist in the configuration, the default broker will be used.
Gets the instance of an related to the queue name . If the queue doesn ' t exist in the configuration the default broker will be used .
public IBrokerConfig GetConfigForQueue(string queueName)
        {
            string brokerName;
            if (!_brokerNameByQueue.TryGetValue(queueName, out brokerName))
                brokerName = DefaultBrokerName;
            Type brokerConfigType;
            if (!_brokerConfigTypesByBrokerName.TryGetValue(brokerName, out brokerConfigType))
                throw new ArgumentException($"The broker with name \"{brokerName}\" could not be found.");
            var brokerSettings = _brokerSettingsByBrokerName[brokerName];
            return (IBrokerConfig)Activator.CreateInstance(brokerConfigType, new object[] { brokerSettings });
        }
public IBrokerConfig GetConfigForQueue ( string queueName ) { string brokerName ; if ( ! _brokerNameByQueue . TryGetValue ( queueName , out brokerName ) ) brokerName = DefaultBrokerName ; Type brokerConfigType ; if ( ! _brokerConfigTypesByBrokerName . TryGetValue ( brokerName , out brokerConfigType ) ) throw new ArgumentException ( $" The broker with name  \" { brokerName } \"  could not be found. " ) ; var brokerSettings = _brokerSettingsByBrokerName [ brokerName ] ; return ( IBrokerConfig ) Activator . CreateInstance ( brokerConfigType , new object [ ] { brokerSettings } ) ; }
Gets the instance of an  related to the queue name.
Gets the instance of an related to the queue name .
queueName
string