title: How to add mediatr in .NET 6?
body: <p>In .NET Core, we can add it in <code>ConfigureServices</code> method</p>
  <pre><code>services.AddMediatR(typeof(Startup));
  </code></pre>
  <p>But in .NET 6, there is only <code>Program.cs</code>. How to add mediatr in .NET 6?</p>
  <p>Tried with this code but got build error</p>
  <p><a href="https://i.stack.imgur.com/N1u4D.png" rel="noreferrer"><img src="https://i.stack.imgur.com/N1u4D.png" alt="enter image description here" /></a></p>