title: Register collection of services in MVC Core DI
body: <p>I`ve got simple class with strategies.</p>
  
  <pre><code> public class LinkQualifier : ILinkQualifier
      {
          private readonly IEnumerable&lt;IQualifier&gt; _qualifiers;
  
          public LinkQualifier(IEnumerable&lt;IQualifier&gt; qualifiers)
          {
              _qualifiers = qualifiers;
          }
  
          public IQualifier Qualify(Uri uri)
          {
              return _qualifiers.FirstOrDefault(q =&gt; q.CanQualify(uri));
          }
  
  
      }
  </code></pre>
  
  <p>How i can register it in MVC core DI container? I invented something like this:</p>
  
  <pre><code>services.AddTransient&lt;ILinkQualifier, LinkQualifier&gt;((ctx =&gt;
              {
                  var qualifiers = new List&lt;IQualifier&gt; {...};
                  return new LinkQualifier(qialifiers);
              }));
  </code></pre>
  
  <p>But thats looks badly... is there a better solution?</p>