Autofac PerLifetimeScope vs PerRequest in web applications
问题 Using Autofac DI container- What is the difference between registering a unit of work in my web application as per request to registering it as PerLifetimeScope? Autofac creates a new scope for each request and by registering the unit of work as PerMatchingScope it will anyways be resolved from the scope created for the request. If I'm mistaken, please correct me, otherwise, what is the difference? Moreover, If I register the UoW as PerLifetimeScope, and have a console application that sends