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)?
ContainerBuilder
Container
Yes you can, using the Update method on ContainerBuilder:
Update
var newBuilder = new ContainerBuilder(); newBuilder.Register...; newBuilder.Update(existingContainer);
1.4m articles
1.4m replys
5 comments
57.0k users