0
私は、一般的なインターフェイスの簡単なrefistatiionUnity DI。ジェネリック型の登録とIsRegistered方法
unityContainer.RegisterType(typeof(IMyInterface<>), typeof(MyClass<>));
それは簡単unityContainer.Resolve<IMyInterface<MyGenericType>>
にMyClass<MyGenericType>
を解決することができますし、それが機能を持っています。
しかしunityContainer.IsRegistered<IMyInterface<MyGenericType>>()
False
質問はされています 1.なぜ? 2. unityContainer.Resolve<IMyInterface<MyGenericType>>
が可能かどうかを確認するにはどうすればよいですか?