I'm moving my application from Structure Map 2.5.3 to 2.6.2 and I'm having some scoping problems.
In 2.5.3 version I used CacheBy(InstanceScope.HttpContext)
to have instances disposed at the end of Http request. Now in 2.6.2 I tried both HybridHttpOrThreadLocalScoped
and HttpContextScoped
but my injected instances do not get disposed.
Any solutions?