wcf in .net 4.0 - tvug november 2010

24
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

Upload: andy-badera

Post on 08-Jul-2015

2.586 views

Category:

Technology


2 download

DESCRIPTION

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

TRANSCRIPT

Page 1: WCF in .NET 4.0 - TVUG November 2010

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

Page 2: WCF in .NET 4.0 - TVUG November 2010

AGENDA

Review

What’s New

Discovery

Tracing

Break

Failover (routing)

Protocol bridging (routing)

REST

Q&A

Page 3: WCF in .NET 4.0 - TVUG November 2010

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

Page 4: WCF in .NET 4.0 - TVUG November 2010

ABC’S OF WCF

Address

Binding

Contract

Page 5: WCF in .NET 4.0 - TVUG November 2010

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

Page 6: WCF in .NET 4.0 - TVUG November 2010

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

Page 7: WCF in .NET 4.0 - TVUG November 2010

WHAT’S NEW IN 4.0

VS2010 Training Kit labs

Zero-configuration services

Default behaviors & bindings

Fileless activation (IIS/WAS)

Standard endpoints

Page 8: WCF in .NET 4.0 - TVUG November 2010

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

Page 9: WCF in .NET 4.0 - TVUG November 2010

STANDARD ENDPOINTS

Well-known infrastructure & application service types

Designated by “kind” attribute

Specify no binding, no contract – well-known

Page 10: WCF in .NET 4.0 - TVUG November 2010

DEFAULTS

Default behavior - unnamed behavior

Default binding – protocol mappings

Page 11: WCF in .NET 4.0 - TVUG November 2010

DISCOVERY – WS-DISCOVERY

Page 12: WCF in .NET 4.0 - TVUG November 2010

DISCOVERY – WINDOWS RALLY

Page 13: WCF in .NET 4.0 - TVUG November 2010

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

Page 14: WCF in .NET 4.0 - TVUG November 2010

AD HOC DISCOVERY - UDP

Page 15: WCF in .NET 4.0 - TVUG November 2010

TRACING

WCF trace logs

Network (netmon, Wireshark)

Page 16: WCF in .NET 4.0 - TVUG November 2010

MANAGED DISCOVERY

Page 17: WCF in .NET 4.0 - TVUG November 2010

MANAGED DISCOVERY

Page 18: WCF in .NET 4.0 - TVUG November 2010

MANAGED DISCOVERY – MS

STYLE

Page 19: WCF in .NET 4.0 - TVUG November 2010

BRIDGING

System.ServiceModel.Routing

<routing /> in .config

Filters & filterType

Page 20: WCF in .NET 4.0 - TVUG November 2010

FAILOVER

<backupLists /> in <routing /> in .config

backupList per filter

Page 21: WCF in .NET 4.0 - TVUG November 2010

REST

REST Hands On Labs

REST Starter Kit – obsolete?

Fileless activation

Page 22: WCF in .NET 4.0 - TVUG November 2010

RESTFUL URIS

URI templates

Old – .svc breaks REST URI protocol

New – better but not perfect

URL Routing or URL Rewriting

Page 23: WCF in .NET 4.0 - TVUG November 2010

Q&A

Page 24: WCF in .NET 4.0 - TVUG November 2010

UPCOMING EVENTS

CloudCamp

GiveCamp (Will Platnick, ActiveHost)

Code Camp