棱镜 4 +梅夫+公共部分类App = Bag?
我正在尝试实现 IPartImportsSatisfiedNotification 接口,但不幸的是它不起作用。 这个bug我只有棱镜。我不明白为什么会发生这种情况。
public partial class App : Application, IPartImportsSatisfiedNotification
{
[Import]
public IPlugin plugin { get; set; }
protected override void OnStartup(StartupEventArgs e)
{
base.OnStartup(e);
var bootstrapper = new Bootstrapper();
bootstrapper.Run();
}
public void OnImportsSatisfied() // This code is not called
{
var x = plugin;
}
}
I'm trying to implement the interface IPartImportsSatisfiedNotification but unfortunately it does not work.
This bug I have only the prism. I can't understand why this is happening.
public partial class App : Application, IPartImportsSatisfiedNotification
{
[Import]
public IPlugin plugin { get; set; }
protected override void OnStartup(StartupEventArgs e)
{
base.OnStartup(e);
var bootstrapper = new Bootstrapper();
bootstrapper.Run();
}
public void OnImportsSatisfied() // This code is not called
{
var x = plugin;
}
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论