Introducing WCF Duplex services
-
Upload
dinusha-kumarasiri -
Category
Technology
-
view
338 -
download
4
Transcript of Introducing WCF Duplex services
Dinusha Kumarasiri
WCF Duplex Services
Agenda
• WCF Basics• Message Exchange Patterns• Duplex Message Exchange• Advantages of Duplex Messaging
WCF Basics
• WCF Provide runtime environment for Services
Client Service
Message
Message
WCF Basics
• Advantages over other alternatives– Support protocols other than http– Host in other than web server– Transactions and reliable sessions– Message formats other than SOAP
WCF Basics
• Endpoints
Client 1
Service
MessageEnd point 1
End point 2
End point 1
Client 2
End point 2Message
WCF Basics
• ABC of WCF
• Address – Where ? • Binding – How?• Contract – What?
WCF Basics
• Channel
WCF Basics
• WCF runtime architecture
Message Exchange patterns
• Request-Reply
DemoWCF Hello Service
Message Exchange patterns
• One-Way
DemoWCF Hello Service
Message Exchange patterns
• Duplex
Duplex Message Exchange
• Both client and server can exchange messages• Use callback contract to call to client• Use “wsDualHttpBinding” binding
DemoWCF Marks Service
Advantages of Duplex Messaging
• Alternative for client polling• Enhanced performance• Integration with Silverlight
DemoWCF Chat
Q&A
Thank You !