title: .NET Core 5 RawRabbit Serializer/Dependency Injection Issue
body: <p>I have microservice based on .NET Core 2.2. I am using RawRabbit (version 2.0.0-beta9) as the service bus. The following packages were installed with it:</p>
  <pre><code>&lt;PackageReference Include=&quot;RawRabbit&quot; Version=&quot;2.0.0-beta9&quot; /&gt;
  &lt;PackageReference Include=&quot;RawRabbit.DependencyInjection.ServiceCollection&quot; Version=&quot;2.0.0-beta9&quot; /&gt;
  &lt;PackageReference Include=&quot;RawRabbit.Operations.Publish&quot; Version=&quot;2.0.0-beta9&quot; /&gt;
  &lt;PackageReference Include=&quot;RawRabbit.Operations.Subscribe&quot; Version=&quot;2.0.0-beta9&quot; /&gt;
  </code></pre>
  <p>This is what my controller looks like:</p>
  <pre><code> private readonly IBusClient _busClient;
  
  //...constructor that inits the _busClient
  
  [HttpPost(&quot;&quot;)]
  public async Task&lt;IActionResult&gt; Post([FromBody] CreateActivity model)
  {
      model.Id = Guid.NewGuid();
      await _busClient.PublishAsync(model); //Exception thrown here
      return Accepted($&quot;Activities/{model.Name}&quot;);
  }
  </code></pre>
  <p>The problem occurs when the code tries to do the following:</p>
  <pre><code>await _busClient.PublishAsync(model);
  </code></pre>
  <p>The exception I get is:</p>
  <p>Method not found: 'Void Newtonsoft.Json.JsonSerializer.set_TypeNameAssemblyFormat(System.Runtime.Serialization.Formatters.FormatterAssemblyStyle)'.</p>