introducing wcf duplex services

19
Dinusha Kumarasiri WCF Duplex Services

Upload: dinusha-kumarasiri

Post on 24-Jun-2015

341 views

Category:

Technology


4 download

TRANSCRIPT

Page 1: Introducing WCF Duplex services

Dinusha Kumarasiri

WCF Duplex Services

Page 2: Introducing WCF Duplex services

Agenda

• WCF Basics• Message Exchange Patterns• Duplex Message Exchange• Advantages of Duplex Messaging

Page 3: Introducing WCF Duplex services

WCF Basics

• WCF Provide runtime environment for Services

Client Service

Message

Message

Page 4: Introducing WCF Duplex services

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

Page 5: Introducing WCF Duplex services

WCF Basics

• Endpoints

Client 1

Service

MessageEnd point 1

End point 2

End point 1

Client 2

End point 2Message

Page 6: Introducing WCF Duplex services

WCF Basics

• ABC of WCF

• Address – Where ? • Binding – How?• Contract – What?

Page 7: Introducing WCF Duplex services

WCF Basics

• Channel

Page 8: Introducing WCF Duplex services

WCF Basics

• WCF runtime architecture

Page 9: Introducing WCF Duplex services

Message Exchange patterns

• Request-Reply

Page 10: Introducing WCF Duplex services

DemoWCF Hello Service

Page 11: Introducing WCF Duplex services

Message Exchange patterns

• One-Way

Page 12: Introducing WCF Duplex services

DemoWCF Hello Service

Page 13: Introducing WCF Duplex services

Message Exchange patterns

• Duplex

Page 14: Introducing WCF Duplex services

Duplex Message Exchange

• Both client and server can exchange messages• Use callback contract to call to client• Use “wsDualHttpBinding” binding

Page 15: Introducing WCF Duplex services

DemoWCF Marks Service

Page 16: Introducing WCF Duplex services

Advantages of Duplex Messaging

• Alternative for client polling• Enhanced performance• Integration with Silverlight

Page 17: Introducing WCF Duplex services

DemoWCF Chat

Page 18: Introducing WCF Duplex services

Q&A

Page 19: Introducing WCF Duplex services

Thank You !