How to set session scope for plugin in StructureMap 2.6?
In previous versions, this is done as follows:
For<ISomeObject>().CacheBy(StructureMap.InstanceScope.HttpSession).Use<SomeObject>();
However, Visual Studio displays a warning that the CacheBy method is CacheBy date, and the LifecycleIs method can be used instead.
source share