I know that you can add registrations to a LifetimeScope
when it is created like this:
using(var scope = container.BeginLifetimeScope(builder =>
{ builder.RegisterType<Override>().As<IService>();
builder.RegisterModule<MyModule>();
}))
{
// The additional registrations will be available
// only in this lifetime scope.
}
Is it possible to add registrations after the LifetimeScope
is created? (to add registrations inside the using
block for example)