インターフェイスIPartImportsSatisfiedNotificationを実装しようとしていますが、残念ながら機能しません。このバグ私はプリズムしか持っていません。なぜこれが起こっているのか理解できません。
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;
}
}