title: How to bind Endpoint to RoutingKey while using ConfigureConsumer in MassTransit
body: <p>I'm playing around with MassTransit on top of RabbitMQ to replace EasyNetQ in one of our current projects. </p>
  
  <p>I basically set up a Consumer which worked great - however I am wondering how to specify the routingKey of the generated Queue while using the function 'ConfigureConsumer' like:</p>
  
  <pre class="lang-cs prettyprint-override"><code>x.AddBus(provider =&gt; Bus.Factory.CreateUsingRabbitMq(cfg =&gt;
                  {
                      var host = cfg.Host(new Uri("rabbitmq://localhost"), hostConfigurator =&gt;
                      {
                          hostConfigurator.Username("guest");
                          hostConfigurator.Password("guest");
                      });
  
                      cfg.ReceiveEndpoint(host, "submit-order", ep =&gt;
                      {
                          ep.ConfigureConsumer&lt;CreatePersonConsumer&gt;(provider);
                      });
                  }));
  </code></pre>
  
  <p>The above sample is not setting any RoutingKey.
  According to the Documentation the only Option I found to specify a routingKey is using the 'Bind' method to bind to an Exchange manually like so:</p>
  
  <pre class="lang-cs prettyprint-override"><code>cfg.ReceiveEndpoint(host, "priority-orders", x =&gt;
      {
          x.BindMessageExchanges = false;
  
          x.Consumer&lt;CreatePersonConsumer&gt;();
  
          x.Bind("submitorder", s =&gt; 
          {
              s.RoutingKey = "KEY";
              s.ExchangeType = ExchangeType.Direct;
          });
      });
  </code></pre>
  
  <p>This approach bother me a little due to the need of specifying the exchange name by using a string literal...</p>
  
  <p>Did I miss any option to only specify the routingKey without the need of Setting the exchange Name directly as a string?</p>