mirror of https://github.com/AMT-Cheif/Stylet.git
parent
d228af4ccc
commit
520fe7416d
|
@ -43,7 +43,9 @@ namespace Bootstrappers
|
|||
builder.RegisterType<WindowManager>().As<IWindowManager>().SingleInstance();
|
||||
builder.RegisterType<EventAggregator>().As<IEventAggregator>().SingleInstance();
|
||||
builder.RegisterType<MessageBoxViewModel>().As<IMessageBoxViewModel>().ExternallyOwned(); // Not singleton!
|
||||
builder.RegisterAssemblyTypes(this.GetType().Assembly).ExternallyOwned();
|
||||
|
||||
// See https://github.com/canton7/Stylet/discussions/211
|
||||
builder.RegisterAssemblyTypes(this.GetType().Assembly).Where(x => !x.Name.Contains("ProcessedByFody")).ExternallyOwned();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Reference in New Issue