protected override IMessageHandler CreateProducerMessageHandler(IProducerDestination destination, IProducerOptions producerProperties, IMessageChannel errorChannel)
        {
            if (producerProperties.HeaderMode == HeaderMode.EmbeddedHeaders)
            {
                throw new InvalidOperationException("The RabbitMQ binder does not support embedded headers since RabbitMQ supports headers natively");
            }

            var extendedProperties = BindingsOptions.GetRabbitProducerOptions(producerProperties.BindingName);
            var prefix             = extendedProperties.Prefix;
            var exchangeName       = destination.Name;
            var destinationName    = string.IsNullOrEmpty(prefix) ? exchangeName : exchangeName[prefix.Length..];
 public RabbitProducerOptions GetProducerOptions(string channelName)
 {
     return(BindingsOptions.GetRabbitProducerOptions(channelName));
 }