LifetimeScope
次のように作成されたときに登録を追加できることを私は知っています:
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.
}
作成後に登録を追加することLifetimeScope
はできますか? using
(たとえば、ブロック内に登録を追加するため)