wcf in .net 4.0 - tvug november 2010
DESCRIPTION
What's new in WCF 4.0 - Andy Badera - November 2010 - Tech Valley .NET User Group (TVUG)TRANSCRIPT
WCF: IT’S
BAAACK
Tech Valley .NET User Group
November 2010
Andy Badera [email protected]
Client Services, Apprenda, Inc.
WCF in .NET 4.0
Discovery, failover, bridging &
REST
AGENDA
Review
What’s New
Discovery
Tracing
Break
Failover (routing)
Protocol bridging (routing)
REST
Q&A
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
ABC’S OF WCF
Address
Binding
Contract
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
WCF DEVELOPMENT/DEBUGGING
C:\Program Files (x86)\Microsoft Visual Studio
10.0\Common7\IDE
WcfTestClient
C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin
SvcUtil – proxy autogenerator – “Add Service Reference”
SvcConfigEditor – “WCF Service Configuration Editor”
SvcTraceViewer
WHAT’S NEW IN 4.0
VS2010 Training Kit labs
Zero-configuration services
Default behaviors & bindings
Fileless activation (IIS/WAS)
Standard endpoints
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
STANDARD ENDPOINTS
Well-known infrastructure & application service types
Designated by “kind” attribute
Specify no binding, no contract – well-known
DEFAULTS
Default behavior - unnamed behavior
Default binding – protocol mappings
DISCOVERY – WS-DISCOVERY
DISCOVERY – WINDOWS RALLY
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
AD HOC DISCOVERY - UDP
TRACING
WCF trace logs
Network (netmon, Wireshark)
MANAGED DISCOVERY
MANAGED DISCOVERY
MANAGED DISCOVERY – MS
STYLE
BRIDGING
System.ServiceModel.Routing
<routing /> in .config
Filters & filterType
FAILOVER
<backupLists /> in <routing /> in .config
backupList per filter
REST
REST Hands On Labs
REST Starter Kit – obsolete?
Fileless activation
RESTFUL URIS
URI templates
Old – .svc breaks REST URI protocol
New – better but not perfect
URL Routing or URL Rewriting
Q&A
UPCOMING EVENTS
CloudCamp
GiveCamp (Will Platnick, ActiveHost)
Code Camp