如何将以下代码转换为使用RegisterFactory
container.RegisterType<Func<string, ICar>>(new InjectionFactory(
ctx => new Func<string, ICar>(name => container.Resolve<ICar>(name))));发布于 2019-08-20 20:16:57
container.RegisterFactory<Func<string, ICar>>((c, type, name) => c.Resolve<ICar>(name));https://stackoverflow.com/questions/56907408
复制相似问题