title: MassTransit RabbitMQ AspNetCore not starting the bus and registering receive endpoints
body: <p>I've been battling with this for hours now but I can't seem to get it to work despite seemingly copying the documentation. </p>
  
  <p>I'm using the new MassTransit AspNetCore package to register my bus and a consumer but it doesn't seem to be starting the bus! If I add a break point by the code the registers the receive endpoint it never gets hit (but the AddBus part does) and the exchange/queue doesn't get created.</p>
  
  <p>It's worth noting that this is just a Web API that runs in IIS and that there are also normal rest endpoints too (I don't know if that would matter or not).</p>
  
  <p>My code is as follows:</p>
  
  <pre><code>services.AddMassTransit(x =&gt;
  {
      x.AddConsumer&lt;SelectAllAccessibleConsumer&gt;();
  
      x.AddBus(provider =&gt; Bus.Factory.CreateUsingRabbitMq(cfg =&gt;
      {
          var host = cfg.Host(new Uri(rabbitMqMessageBus.Host), rabbitMqMessageBus.Username,
              hostConfigurator =&gt;
              {
                  hostConfigurator.Username(rabbitMqMessageBus.Username);
                  hostConfigurator.Password(rabbitMqMessageBus.Password);
  
                  if (rabbitMqMessageBus.UseSsl)
                  {
                      hostConfigurator.UseSsl(s =&gt; { s.Protocol = SslProtocols.Tls12; });
                  }
              });
  
          cfg.ReceiveEndpoint(host, "queue-name", ep =&gt;
          {
              ep.PrefetchCount = 16;
              ep.UseMessageRetry(r =&gt; r.Interval(2, 100));
              ep.ConfigureConsumer&lt;SelectAllAccessibleConsumer&gt;(provider);
          });
      }));
  });
  </code></pre>
  
  <p>I can't help but feel like I'm missing something immensely obvious but for the life of me I can't figure it out.  </p>