Dear Experts,
What is the difference between the lines of codes bellow? from DependencyRegistrar.cs
lines 1-3 have .WithParameter(ResolvedParameter.ForNamed<ICacheManager>("nop_cache_static"))
then lines 4-5 don't have .WithParameter(ResolvedParameter.ForNamed<ICacheManager>("nop_cache_static")).
please explain what is .WithParameter(ResolvedParameter.ForNamed<ICacheManager>("nop_cache_static")).
1) builder.RegisterType<CommonModelFactory>().As<ICommonModelFactory>()
2) .WithParameter(ResolvedParameter.ForNamed<ICacheManager>("nop_cache_static"))
3) .InstancePerLifetimeScope();
4) builder.RegisterType<CommonModelFactory>().As<ICommonModelFactory>()
5) .InstancePerLifetimeScope();