Basically what i'd like to do is injecting what's in HttpContext.Current.User everytime I ask for an IPrincipal. This is the code in StructureMap:
ForRequestedType<IPrincipal>()
.CacheBy(InstanceScope.Hybrid)
.TheDefault.Is.ConstructedBy(ctx => HttpContext.Current.User)
How do I achieve the same in Unity?.