一部のコントローラー インスタンスでの注入用に登録された抽象ファクトリがあります。その抽象ファクトリを登録して、インジェクション ファクトリとして使用できますか?
これは私が持っているものです:
public interface ILevelFactory
{
Levels Create();
}
.RegisterType<ILevelFactory, LevelFactory>()
.RegisterType<Levels>(new InjectionFactory((c) => StaticLevelFactory.GetLevels()))
望ましい状況:
.RegisterType<ILevelFactory, LevelFactory>()
.RegisterType<Levels>(*** look up and use ILevelFactory ***)
つまり、StaticLevelFactory を取り除きたいのです。