Silverlight(纸牌游戏)和 WCF 通信(使用 IIS) [英] Silverlight(card game) and WCF communication (with IIS)

查看:27
本文介绍了Silverlight(纸牌游戏)和 WCF 通信(使用 IIS)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好!

我的计算机上有一个 IIS 服务器,我实际开发了一个 Silverlight 纸牌游戏,我希望它作为多人游戏在我的服务器上运行.我搜索了很多关于它的信息,但我无法决定应该使用哪种技术或什么.哪种技术允许我与连接到它的用户通信我的服务器?我认为一个简单的通信对我来说就足够了,例如我连接到它,服务器回答我(在身份验证后).--> 例如我找到了 WCF例如,如果我连接到它,我会看到实际连接的人,在与用户开始游戏后,我进行了卡片事件等......合作伙伴可以看到我做了什么,并且可以看到变化和用另一个卡片事件来回答这个问题...

I have an IIS server on my computer, and there is a silverlight card game what I develop actually, and i want it as a mulitplayer game tu run on my server. I search a lot of about it,but i can't decide which technology or what i should to use. Which technology allow me to communicate my server with the users who connect to it? I think a simple communication is enough for me, that just for example i connect to it, and the server answer for me(after authentication).--> i found the WCF for example For example if i connect to it, i see the people who actually connected, and after start the game with a user, and i make a card event etc... the partner can see what i did,and e can see the change and answer to that with another card event...

请帮忙...

推荐答案

看看下面的帮助主题:http://msdn.microsoft.com/en-us/library/cc296254(VS.95).aspx

另外,我自己的关于这个主题的视频的无耻插件:http://videos.visitmix.com/MIX09/T42F

Also, a shameless plug for my own video on the subject: http://videos.visitmix.com/MIX09/T42F

并且在此博客上有很多关于此的有用信息和偶尔的代码示例:链接

And there's a lot of useful information on this and the occasional code sample on this blog: Link

WCF 确实是您方案的绝佳选择.它甚至允许双工/推"场景(例如玩家 A 移动并向服务器发送消息,服务器自动向玩家 B、C 和 D 推送通知).

WCF is indeed a great option for your scenario. It even allows for duplex/"push" scenarios (e.g. player A makes a move and sends a message to server, server automatically pushes notifications to players B, C and D).

这篇关于Silverlight(纸牌游戏)和 WCF 通信(使用 IIS)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆