Autofac not disposing IDisposable registered with InstancePerHttpRequest

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
11 years ago
Hi AndreyMaz,

first of all congratulations for your great work, impressive architecture!

I found something weird with your implementation of the Dependency Resolver. Somehow IDisposable components registered in Autofac with InstancePerHttpRequest scope are never disposed.

In particoular DbContext dispose method is not called at the end of each request.

Is that by design?

Thank you,
Alessandro
11 years ago
Hi,

I haven't looked at this issue yet. I've just created a work item and investigate it later
11 years ago
Great,

it could save a bunch of system resources.

Thank you,
AC
11 years ago
And here we go. Please see changeset f8c9bf48cbff
11 years ago
a.m. wrote:
And here we go. Please see changeset f8c9bf48cbff


Yup, crystal clear!

Thanks,
AC
11 years ago
Please also have a look at this forum topic
9 years ago
a.m. wrote:
And here we go. Please see changeset f8c9bf48cbff



Hello, the problem is how to solve!Your URL is invalid! ?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.