title: IActionModelConvention registration in ASP.NET Core 3.1
body: <p>How can I register <code>IActionModelConvention</code> in ASP.NET Core 3.1? I have a class that implements it:</p>
  
  <pre><code>class MyConvention : IActionModelConvention {
     ...
  }
  </code></pre>
  
  <p>This is how to register it in .NET Core 2.1:</p>
  
  <pre><code>services.AddMvc(options =&gt; {
      options.Conventions.Add(new MyConvention());
  });
  </code></pre>
  
  <p>How can I use <code>MyConvention</code> with ASP.NET Core Endpoint Routing?</p>