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 anos atrás
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 anos atrás
Hi,

I haven't looked at this issue yet. I've just created a work item and investigate it later
11 anos atrás
Great,

it could save a bunch of system resources.

Thank you,
AC
11 anos atrás
And here we go. Please see changeset f8c9bf48cbff
11 anos atrás
a.m. wrote:
And here we go. Please see changeset f8c9bf48cbff


Yup, crystal clear!

Thanks,
AC
11 anos atrás
Please also have a look at this forum topic
9 anos atrás
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.