Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

WCF in .NET 4.0 - TVUG November 2010

2,823 views

Published on

What's new in WCF 4.0 - Andy Badera - November 2010 - Tech Valley .NET User Group (TVUG)

Published in: Technology
  • Be the first to comment

  • Be the first to like this

WCF in .NET 4.0 - TVUG November 2010

  1. 1. WCF: IT’S BAAACK Tech Valley .NET User Group November 2010 Andy Badera andrew@badera.us Client Services, Apprenda, Inc. WCF in .NET 4.0 Discovery, failover, bridging & REST
  2. 2. AGENDA  Review  What’s New  Discovery  Tracing  Break  Failover (routing)  Protocol bridging (routing)  REST  Q&A
  3. 3. APPRENDA & SAASGRID  VC-backed ($6.5M) startup in Clifton Park – hiring!  Scalable SaaS-enablement platform & WCF grid for .NET  Transform single tenant apps -> multitenant  We reduce your time to market/revenue  Heavy manipulation of WCF configuration  Inject endpoints for grid awareness/participation  Inject behaviors for session management and tenancy/subscription enforcement
  4. 4. ABC’S OF WCF  Address  Binding  Contract
  5. 5. HOSTING WCF  IIS (HTTP/S)  Within a WCF application (WinForms, WCF; P2P, rich clients)  Hosted by a Windows service  WAS (non-HTTP via IIS model)  AppFabric
  6. 6. WCF DEVELOPMENT/DEBUGGING  C:Program Files (x86)Microsoft Visual Studio 10.0Common7IDE  WcfTestClient  C:Program FilesMicrosoft SDKsWindowsv7.1Bin  SvcUtil – proxy autogenerator – “Add Service Reference”  SvcConfigEditor – “WCF Service Configuration Editor”  SvcTraceViewer
  7. 7. WHAT’S NEW IN 4.0  VS2010 Training Kit labs  Zero-configuration services  Default behaviors & bindings  Fileless activation (IIS/WAS)  Standard endpoints
  8. 8. WHAT’S NEW IN 4.0  Discovery (WS-Discovery) http://docs.oasis-open.org/ws-dd/discovery/1.1/wsdd-discovery- 1.1-spec.html  Routing  Failover  Protocol bridging
  9. 9. STANDARD ENDPOINTS  Well-known infrastructure & application service types  Designated by “kind” attribute  Specify no binding, no contract – well-known
  10. 10. DEFAULTS  Default behavior - unnamed behavior  Default binding – protocol mappings
  11. 11. DISCOVERY – WS-DISCOVERY
  12. 12. DISCOVERY – WINDOWS RALLY
  13. 13. AD HOC DISCOVERY - UDP  System.ServiceModel.Discovery  Sync or Async  Broadcasts announcements  Well-known standard endpoints – UdpDiscoveryEndpoint, UdpAnnouncementEndpoint  Filtered by various criteria  Metadata – System.ServiceModel.Description
  14. 14. AD HOC DISCOVERY - UDP
  15. 15. TRACING  WCF trace logs  Network (netmon, Wireshark)
  16. 16. MANAGED DISCOVERY
  17. 17. MANAGED DISCOVERY
  18. 18. MANAGED DISCOVERY – MS STYLE
  19. 19. BRIDGING  System.ServiceModel.Routing  <routing /> in .config  Filters & filterType
  20. 20. FAILOVER  <backupLists /> in <routing /> in .config  backupList per filter
  21. 21. REST  REST Hands On Labs  REST Starter Kit – obsolete?  Fileless activation
  22. 22. RESTFUL URIS  URI templates  Old – .svc breaks REST URI protocol  New – better but not perfect  URL Routing or URL Rewriting
  23. 23. Q&A
  24. 24. UPCOMING EVENTS  CloudCamp  GiveCamp (Will Platnick, ActiveHost)  Code Camp

×