具有同步功能的 Silverlight 多用户应用程序

发布于 2024-10-20 02:20:02 字数 383 浏览 4 评论 0原文

我想知道是否可以在 Silverlight 中创建一个支持不同客户端之间同步的图形应用程序。

更准确地说,我正在绘制开发 Silverlight 游戏的概念。访客将登录并查看实时,同步其他访客正在做的事情。

如果可以实现这一点,我想知道在多个对等点之间创建完全同步的 Silverlight 环境需要什么。任何来自链接、代码片段、想法和/或替代方案的内容都值得赞赏!

请不要建议使用 Flash,因为我没有有效的 Flash 构建许可证,我更喜欢在 Visual Studio 2010 中创建它。

编辑:

我希望它对客户来说尽可能轻量级,我不太关心服务器,而且带宽消耗也很低。我不知道广播委托是否是所有事件同时发生的唯一选择?

I am wondering if it's possible to create a graphical application in Silverlight which supports synchronisation between the different clients.

To be a bit more precise, I am drawing concepts of developing a Silverlight Game. Visitors would log-in, and see live, synchronised what the other vistors are doing.

If it is possible to have this implemented, I would like to know what is needed to create a fully synched Silverlight environment between multiple peers. Anything from links, code snippets, ideas and / or alternatives are more than appreciated !

Please do not suggest Flash, as I do not own a valid Flash building license, I prefer to have this created within Visual Studio 2010.

Edit:

I want it to be as lightweight for the clients as possible, I don't care much for the server, and also low bandwidth consuming. I don't know whether a broadcasting principal is the only option to have all the events taken place at the same time?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

×眷恋的温暖 2024-10-27 02:20:02

您可能想看一下 WCF 的轮询双工协议。这就是订阅和发布的概念。 SL 的支持从版本 2 就开始了,所以有很多文章。我引用的关于我们在工作中部署的消息广播系统的文章可以在这里找到...

http://tomasz.janczuk.org/2009/07/pubsub-sample-using-http-polling-duplex.html

其中还提到了 codeplex 上的一个有趣的项目(我没有使用过)...

http://laharsub.codeplex.com/

You may want to take a look at the Polling Duplex protocol of WCF. This is the subscription and publish concept. Support in SL has been about since version 2 so there's plenty of articles out there. An article I referenced for a message broadcast system we put in place at work can be found here...

http://tomasz.janczuk.org/2009/07/pubsub-sample-using-http-polling-duplex.html

which also mentions an interesting project on codeplex (I've not used)...

http://laharsub.codeplex.com/

生寂 2024-10-27 02:20:02

一个简单且可行(但效率相当低)的解决方案是让所有客户端定期向服务器上的 WCF/Ria 服务请求状态更新,也许每 X 秒左右一次,让服务器跟踪与客户端相关的更改。打电话给客户。

A simple and working (but rather inefficient) solution would be for all clients to ask a WCF/Ria service on the server for status updates in regular intervals, perhaps once every X seconds or so, letting the server keep track of changes relevant to the calling clients.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文