From the Autofac documentation:
Autofac overrides component registrations by default. This means that an application can register all of its default components, then read an associated configuration file to override any that have been customized for the deployment environment.
How can i override registration, firstly i make assebly scan,
builder
.RegisterAssemblyTypes(assembly)
.PropertiesAutowired(PropertyWiringOptions.AllowCircularDependencies)
.AsImplementedInterfaces()
.AsSelf()
.InstancePerRequest();
Then try to update registration without scope tag
builder
.RegisterType<NotPerRequestType>()
.AsImplementedInterfaces();
But there are still 2 registrations and i still getting no matching tag error wher i resolve NotPerRequestType.