Adding services after container has been built
Is it possible to register a service at run-time, meaning after the ContainerBuilder has been built and the Container has been created (and ContainerBuilder disposed of)? Peter Lillevold Yes you can, using the Update method on ContainerBuilder : var newBuilder = new ContainerBuilder(); newBuilder.Register...; newBuilder.Update(existingContainer); wezzix Since ContainerBuilder.Update has been deprecated, the new recommendation is to use child lifetime scope. Adding Registrations to a Lifetime Scope Autofac allows you to add registrations “on the fly” as you create lifetime scopes. This can help