Download
slide1 n.
Skip this Video
Loading SlideShow in 5 Seconds..
Windows Communication Foundation PowerPoint Presentation
Download Presentation
Windows Communication Foundation

Windows Communication Foundation

132 Vues Download Presentation
Télécharger la présentation

Windows Communication Foundation

- - - - - - - - - - - - - - - - - - - - - - - - - - - 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