<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tera1707</author_name>
  <author_url>https://blog.hatena.ne.jp/tera1707/</author_url>
  <blog_title>tera1707’s blog</blog_title>
  <blog_url>https://tera1707.com/</blog_url>
  <categories>
    <anon>C#</anon>
    <anon>DependencyInjection</anon>
  </categories>
  <description>もくじ https://tera1707.com/entry/2022/02/06/144447 やりたいこと 以前の記事で、Ioc と ServiceCollection を使って、DI（Dependency Injection）をやったが、そのときコンストラクタで受けるクラスは、それぞれ別のインターフェースを実装するクラスだった。 同じインターフェースを実装したクラスを複数受け取りたいときはどうしたらいいか？調べてみる。 まずこまったこと 下記のツールを作ってるときにおきたこと。 https://github.com/tera1707/FileVerUpTool 下記のコンストラクタのよう…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftera1707.com%2Fentry%2F2023%2F02%2F02%2F230500&quot; title=&quot; DIでServiceCollectionに同じInterfaceのクラスを複数登録する - tera1707’s blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-02-02 23:05:00</published>
  <title> DIでServiceCollectionに同じInterfaceのクラスを複数登録する</title>
  <type>rich</type>
  <url>https://tera1707.com/entry/2023/02/02/230500</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
