title: AddMasstransitHostedService cannot be found
body: <p>Good day
  I'm configuring Masstransit for .net6 net core application
  Have added Masstransit nuget packages:</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;PackageReference Include=&quot;MassTransit.Extensions.DependencyInjection&quot; Version=&quot;7.2.4&quot; /&gt;
  &lt;PackageReference Include=&quot;MassTransit.RabbitMQ&quot; Version=&quot;7.2.4&quot; /&gt;
  </code></pre>
  <p>Am registering it in Startup and it says there is no such method as AddMasstransitHostedService
  I have tried publishing message without it, but no exchange is being created (and for some reason debug also shows actual address with port 0)</p>
  <p>Would be very grateful for help
  Have searched everything related on the internet, unfortunately no fixes yet</p>
  <p>Here is the way I register Masstransit:</p>
  <pre><code>services.AddMassTransit(mt =&gt;
  {
      mt.UsingRabbitMq((context, cfg) =&gt;
      {
          cfg.Host(new Uri(RabbitMqOptions.RabbitMqUri), h =&gt;
          {
              h.Username(RabbitMqOptions.UserName);
              h.Password(RabbitMqOptions.Password);
          });
          
          cfg.AutoStart = true;
  
          cfg.Publish&lt;IServerNotificationMessage&gt;(e =&gt; e.ExchangeType = RabbitMQ.Client.ExchangeType.Direct);
      });
  });
  services.AddMassTransitHostedService();//&lt;-----this one hints: IServiceCollection doesnt contain a definition for AddMassTransitHostedService...
  </code></pre>
  <p>and here is the way I've tried publishing message:</p>
  <pre><code>public class SomeController : ControllerBase
  {
      protected readonly IBus _bus;
  
      public SomeController(IBus bus)
      {
          _bus = bus;
      }
  
      [HttpGet(&quot;TestPublish&quot;)]
      public void TestPublish(CancellationToken cancellationToken)
      {
          _bus.Publish&lt;SomeMessage&gt;(new
          {
              ...
              ... // fields go here
          }, cancellationToken);
  </code></pre>