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);
2.1m questions
2.1m answers
60 comments
57.0k users