1 / 13

Windows Communication Foundation

Martin Parry Developer & Platform Group Microsoft Ltd Martin.Parry@microsoft.com http://www.martinparry.com. Windows Communication Foundation. Sys.Messaging. MSMQ, Txns, Queuing. Communications. ASMX. Ent Services. Secure, Transactional. Basic, Open Comms. Remoting. WSE.

vea
Download Presentation

Windows Communication Foundation

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Martin Parry Developer & Platform Group Microsoft Ltd Martin.Parry@microsoft.com http://www.martinparry.com WindowsCommunicationFoundation

  2. Sys.Messaging MSMQ, Txns, Queuing Communications ASMX Ent Services Secure, Transactional Basic, Open Comms Remoting WSE Secure, Open Comms Fast, Secure, Binary

  3. “Service” Message (SOAP) Message Headers: Addressing, Security, etc. Message Body: Payload Metadata Distributed Applications “Client” • Services pass messages described by a contract • Service may provide metadata, describing: - • The contract • The policy applied to communication

  4. Security? Encoding? Transport? Mechanics of Communication “Service” “Client” What do I send? Contract Where do I send it? Address How should I send it? Binding

  5. Endpoint Endpoint Endpoint Contract Contract Contract Binding Binding Binding Address Address Address Mechanics of Communication “Service” “Client”

  6. Basic WCF Demo

  7. XML objects formatting behaviours behaviours WCF – sketched architecture Client Service Your code Your code channel Metadata channel Transport Channel (HTTP, TCP, MSMQ, Pipes, Peer) channel channel channel channel Binding (ordered list of channel types & config) encoding decoding channel type 1 config channel type 2 config channel type N config

  8. Instancing, Concurrency, Sessions • Service classes can be instantiated: - • Singleton, Per-Call, Per-Session, Shareable • Service code can be either: - • Single threaded, Re-entrant or Multi-threaded Service Message A Singleton Message B Message C Client

  9. Instancing, Concurrency, Sessions • Service classes can be instantiated: - • Singleton, Per-Call, Per-Session, Shareable • Service code can be either: - • Single threaded, Re-entrant or Multi-threaded Service Message A Single Call Message B Single Call Message C Client Single Call

  10. Instancing, Concurrency, Sessions • Service classes can be instantiated: - • Singleton, Per-Call, Per-Session, Shareable • Service code can be either: - • Single threaded, Re-entrant or Multi-threaded Service session Message A Per Session Message B Per Session Message C Client

  11. More WCF Demo

  12. Summary • Windows Communication Foundation • Unified, highly extensible messaging API • FX3.5 adds non-SOAP messaging

More Related