Ads by Google

Donate

If you like articles and you want an increase of them, please make a little donation. If you make a donation you can submit us by mail an argument for next articles!

Importo: 

add RSS

Add to MyYahoo!
Subscribe in NewsGator Online
Add to Newsburst
Add to Google
Add to My AOL
Add to Pluck
Subscribe in FeedLounge
Add to Windows Live
Add to NetVibes
Subscribe in Rojo
Subscribe in Bloglines
Add to MyMSN
Add to Plusmo for your cellphone
Add to PageFlakes
Add to Technorati

Subscribe to Blog

Follow us on Twitter

follow us

Manfriday blog gadget

WCF


WCF Duplex for a Poker Room
Venerdì 24 Aprile 2009 13:33

In italy we are knowing an explosion of poker texas hold'em virtual rooms . So I want to explore this kind of applications.
The first thing to do to build a poker room application is the communication frame.
When you play at poker you need that the server ( the dealer ) pushs some data in broadcast ( flop, bets and other for the rendering on the client side), something else on a single channel (i.e. client cards )
and then in some cases you need that the client can push his bets or other actions ( this could be done on demand too, but I want try with a duplex service  :-) ), so we need a quite complex communication system.

the structure of the application could be the following one ( maybe it will change ) : 

1) A Server with a WCF Service 
2) Client WPF or Silvelight ( we will se later what are limitations of both)
3) Maybe Flex client too... 

In this first part I want concentrate on the Service and the communication with clients that will be handled with WCF technology. I chose a duplex channel, yes I want to make me hard the way. Duplex duplex...oh my god...

Let's start to build the service.
 
 
WCF Service endpoints
Lunedì 19 Gennaio 2009 21:15
WCF is the new .NET way to define a web communication between server and client.
WCF follows the trend of WPF to build static parts ( configuration ) using a sort of Xml, but that could be replied by code. 
 
This is a brief introduction to how configure a service using the paradigm of WCF : endpoints based on address,binding, contract. 
 
Creating a WCF VisualStudio project it will be very easy to configure the service as follow. 
 
Every service is associated with an address that defines where the service is, a binding
that defines how to communicate with the service, and a contract that defines
what the service does. WCF formalizes this relationship in the form of an endpoint.
The endpoint is the fusion of the address, contract, and binding.
 
<system.serviceModel>
<services>
<service name = "MyNamespace.MyService">
 
 


Ricerca personalizzata