开发者

Structure Map 2.6.2 scoping

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 insta开发者_开发问答nces do not get disposed.

Any solutions?


Those classes which were not disposed were in another project still referencing 2.5.3. It works fine now after fixing the references :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜