我正在构建一个使用 WCF 服务进行通信的 Silverlight 应用程序。当我运行多个 Silverlight 应用程序实例时,它是否也运行多个服务库实例?我还想知道,如果我从浏览器复制应用程序 URL 并将其粘贴到新选项卡中,它是否运行多个 Silverlight 实例。预先感谢您的回答。
1 回答
When I run multiple instances of Silverlight application does it also run multiple instances of service library or not?
No, because Silverlight and your service are two differents applications. Silverlight runs on client whereas your service is hosted ins IIS. As a website, the service will expose data for all clients.
Also I want to know, is it running multiple instances of Silverlight if I copy the application URL from browser and paste it into a new tab.
Every instance of Silverlight is sandboxed. Even multiples of the same Silverlight app in the same Browser page are duplicate instances and nothing is shared. They are therefore not even shared between browser tabs.