【发布时间】:2022-10-19 22:06:46
【问题描述】:
这是入门 Prism 示例的第一步 here 说
使用 System.Windows;
使用 Prism.Ioc;
使用 Prism.Unity;
命名空间 WpfApp1
{
public partial class App : PrismApplication
{
protected override void RegisterTypes(IContainerRegistry containerRegistry)
{
containerRegistry.Register<Services.ICustomerStore, Services.DbCustomerStore>();
// register other needed services here
}
protected override Window CreateShell()
{
var w = Container.Resolve<MainWindow>();
return w;
}
}
}
问题出在这一行containerRegistry.Register<Services.ICustomerStore它在哪里找到服务也建议两个,但没有一个具有以下客户商店
【问题讨论】:
标签: prism