Autofac registration and disposal issues
问题 I'm using entity framework 6 and Autofac in my web application. I inject unit of work with DbContext inside, both externally owned so I can dispose them myself. DbContext registered PerLifetimeScope, Unit of work is a factory, therefore registered as per dependency. When Executing the first http Get action everthing works fine and I see the unit of work with the context are disposed after the response is coming from the db which is great. My issue is that whenever I execute a second request,