How to write this StructureMap line in Ninject
ForRequestedType<HttpContextBase>()
.TheDefault.Is.ConstructedBy(x => new HttpContextWrapper(HttpContext.Current));
?
How to write this StructureMap line in Ninject
ForRequestedType<HttpContextBase>()
.TheDefault.Is.ConstructedBy(x => new HttpContextWrapper(HttpContext.Current));
?
Bind<HttpContextBase>().ToMethod(context => new HttpContextWrapper(HttpContext.Current));