从“LightInject”迁移到 .netcore DI 容器。
以下 LightInject 相关注册的.netcore DI 容器等效项是什么?
a. container.RegisterConstructorDependency<IBar>((factory, parameterInfo) => new Bar());
b. container.RegisterInstance<Func<string, string>>
((username, password) => new MemCache(userId, password, container.GetInstance<IBusinessLogic>()));