Migrating from 'LightInject' to .netcore DI container.
What are the .netcore DI container equivalents of below LightInject related registrations?
a. container.RegisterConstructorDependency<IBar>((factory, parameterInfo) => new Bar());
b. container.RegisterInstance<Func<string, string>>
((username, password) => new MemCache(userId, password, container.GetInstance<IBusinessLogic>()));