且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用Silverlight 4托管Web应用程序

更新时间:2022-12-21 20:39:34

托管网页(包括Silverlight)需要Web服务器(当您谈论.Net时通常是IIS),但是Apache可以也可以使用),即使您只是在LAN上也是如此.

客户通常无法更改网站/应用程序,因此其余问题毫无意义.
Hosting a web page (including Silverlight) requires a web server (usually IIS when you''re talking about .Net, but Apache can be used as well), even if you''re just on a LAN.

Clients can''t usually change a web site/app so the rest of your question doesn''t make any sense.


Silverlight部分将在客户端上运行(或使用你的话,奴隶机器).如果要将数据保存在服务器上,Silverlight可以使用WCF服务,或者您的Web应用程序可以具有ASP.NET后端.
The Silverlight portion will be running on the client (or to use your word, the slave machine). If you want to save data on the server, Silverlight can either use a WCF service or your web-app can have an ASP.NET backend that will do that.


保存到数据库是简单.拥有与您交谈的WCF服务.
允许所有客户端知道数据库已发生更改非常困难.

您需要使用双工机制呼叫 [ ^ ]或套接字.
Saving to the database is easy. Have a WCF service that you talk to.
Allowing all clients to know that there has been a change in the database is trickier.

You need to implement a notification mechanism using duplex mechanism calls[^] or sockets.