1 / 28

AppFabric Series: A Lap Around WCF 4

AppFabric Series: A Lap Around WCF 4. Josh Harrison. WCF 4.0 Context. Overview of What’s New. Simplified configuration model Added functionality for Discovery, Routing, and REST. Configuration Updates.

lynne
Download Presentation

AppFabric Series: A Lap Around WCF 4

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. AppFabric Series: A Lap Around WCF 4 Josh Harrison

  2. WCF 4.0 Context

  3. Overview of What’s New Simplified configuration model Added functionality for Discovery, Routing, and REST

  4. Configuration Updates WCF has been successful at shielding the developer from complexities around distributed communication implementation However, it has introduced a new complexity

  5. Simplified Configuration Default Endpoints Default Bindings Default Behaviors Standard Endpoints

  6. Default Endpoints If no endpoints are defined when a service is opened, WCF will infer at least one based on the base address and service type.

  7. Protocol Maps can be modified <system.servicemodel> <protocolMapping> <add scheme=”http” binding=”wsHttpBinding” /> </protocolMapping> </system.servicemodel>

  8. Default Behaviors/Bindings Unnamed binding or behavior configurations will be applied to services/endpoints that do not have named configurations

  9. Standard Endpoints A short hand way of defining commonly used endpoints.

  10. Standard Endpoints Example <system.servicemodel> <service> <service name=”Demo.TestService”> <endpoint kind=”mexEndpoint” /> …

  11. Configuration Demo

  12. Indirect Message Patterns “All problems in computer science can be solved by another level of indirection” –Butler Lampson

  13. Routing

  14. Routing “Messaging pattern used to decouple a message source from the ultimate destination of the message” -Enterprise Integration Patterns (Hohpe, Woolfe)

  15. Routable properties Message Action Address prefix Message headers Endpoint address

  16. Common Use Cases Network masquerading Protocol Bridging Multi-casting Content routing

  17. Routing Message Exchange Patterns • Routing service is implemented via the RoutingService and supports four MEP contract types. • ISimplexDataGramRouter • IRequestReplyReplyRouter • ISimplexSessionRouter • IDuplexSessionRouter

  18. Routing Demo

  19. Discovery

  20. Ad-Hoc Discovery UDP based broadcast on client’s subnet The “udpDiscoveryEndpoint” Standard endpoint can be used Similar to a server-less bind in Directory Services programming.

  21. Ad-hoc code sample • Two ways to go about ad-hoc discovery • Dynamic Endpoint • Discovery Client varfindCriteria = FindCriteria.CreateMetaDataEndpointExchangeCriteria(typeof(Demo.ITestService)); findCriteria.MaxResults= 1; varfindResults = discoveryClient.Find(findCriteria);

  22. Managed Discovery Clients discover services through an implemented proxy Proxy’s are implementations of an abstract base class DiscoveryProxy Services contact proxy when they start up and shut down

  23. Discovery Demo

  24. Improved Rest Support Help Page Behavior AspNetCacheProfile attribute WebFaultException New Project Templates

  25. Works Cited and Referenced Juval Lowy - Programming WCF Services Aaron Skonnard – A Developer’s Introduction to Windows Communication Foundation 4 (MSDN) Jesus Rodriguez Weblog

  26. Contact Info Email: josh.r.harrison@gmail.com Blog: www.JoshRHarrison.com LinkedIn: http://www.linkedin.com/in/joshrharrison Company: Leading EDJE

More Related