title: Mediator in .net Core 6 WebApi Object disposed exception
body: <p>I have the following WebApi constructor:</p>
  <pre><code>public MyController(ILogger&lt;MyController&gt; logger, 
      Channel channel,
      AuditManager auditManager,
      IMediator mediator)
  {
      _logger = logger;
      _channel = channel;
  
      _channel.EventFinished += async (o, e) =&gt;
      {
          await mediator.Publish(new EventFinishedNotification(e);
      };
      
      _auditManager = auditManager;
  }
  </code></pre>
  <p>Basically i'm subscribing to the <code>_channel.EventFinished</code> event (which fires when one of my end points is called). When this occurs, on the call to <code>mediator.Publish</code> i get a</p>
  <blockquote>
  <p>Cannot access a disposed object. Object name: 'IServiceProvider'.'</p>
  </blockquote>
  <p>exception. Any ideas why ?</p>