Search code examples
dependency-injectionautofacautofac-configuration

Is it possible to set InstancePerRequest as default instance scope option for Autofac?


Autofac InstancePerDependency as the default if no other option is specified. Is it possible to set InstancePerRequest as default instance scope option for Autofac?


Solution

  • No, there is no way to change the default lifetime scope preference on the container.