title: Asp.Net Core: register implementation with multiple interfaces and lifestyle Singleton
body: <p>Considering the following interface and class definitions:</p>
  
  <pre><code>public interface IInterface1 { }
  public interface IInterface2 { }
  public class MyClass : IInterface1, IInterface2 { }
  </code></pre>
  
  <p>is there any way to register one instance of <code>MyClass</code> with multiple interfaces like this:</p>
  
  <pre><code>...
  services.AddSingleton&lt;IInterface1, IInterface2, MyClass&gt;();
  ...
  </code></pre>
  
  <p>and resolve this single instance of <code>MyClass</code> with different interfaces like this:</p>
  
  <pre><code>IInterface1 interface1 = app.ApplicationServices.GetService&lt;IInterface1&gt;();
  IInterface2 interface2 = app.ApplicationServices.GetService&lt;IInterface2&gt;();
  </code></pre>