简体   繁体   English

ASP.Net中托管的Silverlight应用程序

[英]Silverlight application hosted in ASP.Net

I have hosted Silverlight application in ASP.Net page. 我已经在ASP.Net页面中托管了Silverlight应用程序。

We make use of a WCF Service to update/bind data on the controls. 我们利用WCF服务来更新/绑定控件上的数据。

When we deployed the application on load balanced enviroment, it worked for all our test cases,even when tested for the same user in different machines. 当我们在负载平衡的环境中部署该应用程序时,它适用于我们所有的测试用例,即使是针对同一用户在不同计算机上进行测试也是如此。

Will it fail? 会失败吗?

We haven't done any code changes when moving from single server to multiserver environment (yes the URLs for the service reference are the same after the load balancing - adding new servers). 从单服务器环境转移到多服务器环境时,我们没有做任何代码更改(是的,在负载平衡后,服务引用的URL是相同的-添加新服务器)。

Is it working because the client code is loaded on the browser machine and we don't need to perform session management? 是否有效,因为客户端代码已加载到浏览器计算机上,并且我们不需要执行会话管理?

Session state with a Silverlight application is a little magical. Silverlight应用程序的会话状态有些神奇。 Usually, in ASP.Net the session state is stored in the browser and submitted with the form; 通常,在ASP.Net中,会话状态存储在浏览器中并以表格形式提交。 it is retransmitted each time the form is submitted. 每次提交表单时都会重新发送。

Since Silverlight doesn't do form submits (it can, but noone ever uses it that way) - it goes through WCF/RIA - the session state is loaded once and maintained in the browser, allowing the Silverlight app to access it on demand. 由于Silverlight不执行表单提交(它可以,但是没有人使用这种方式提交)-它通过WCF / RIA进行处理-会话状态一次加载并保存在浏览器中,从而允许Silverlight应用程序按需访问它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM