Detecting multiple instances of XBAP Application
I have a XBAP application which I have published in IIS.
Let's say I run the application in the web browser, th开发者_Python百科en open a new tab and run the application again.
- How can I detect that more than one instance is running?
- How can I force that only one instance should run?
Thanks in advance
XBAP applications typically run in partial trust mode as well as in a "sandbox" of sorts. Because of this limitation, your program will not be able to reach out and search for other instances of itself. If you were to run in full trust, you may find yourself with more options.
Here is a bit from Microsoft about the sandbox to give you a better idea of your options. http://msdn.microsoft.com/en-us/library/aa480229.aspx
精彩评论