Single instance WPF application using Caliburn.Micro

I've seen all the other questions regarding creating a single instance app using WPF and I've chosen to use the Microsoft's approach as described here: https://codereview.stackexchange.com/a/25667

This is working fine, but now I'd like to using Caliburn.Micro on this application and this code does not play well with caliburn.

How can I have a single instance wpf application using caliburn micro?

The requirement are quite simple: .net 4.5 and only one instance of the application per user session

Thanks


I use a named mutex in my main method and show a dialog if the mutex already exists.

Check this stack - WPF Single Instance Best Practices

链接地址: http://www.djcxy.com/p/51170.html

上一篇: 带有互斥体的单实例应用程序

下一篇: 使用Caliburn.Micro的单实例WPF应用程序