22
Mike Taulty Developer & Platform Group Microsoft Ltd [email protected] http://miketaulty.com

WCF and WF in Framework 3.5

  • Upload
    ukdpe

  • View
    1.671

  • Download
    2

Embed Size (px)

Citation preview

Page 1: WCF and WF in Framework 3.5

Mike TaultyDeveloper & Platform GroupMicrosoft [email protected] http://miketaulty.com

Page 2: WCF and WF in Framework 3.5
Page 3: WCF and WF in Framework 3.5

2002

NetFx 1.0

CLR 1.0

2003

NetFx 1.1

2005

NetFx 2.0

CLR 2.0

C# 2.0VB 8.0

NetFx 3.0

2006 2007

NetFx 3.5

C# 3.0VB 9.0

Page 4: WCF and WF in Framework 3.5
Page 5: WCF and WF in Framework 3.5

“Client”“Service”

One WayRequest/ResponseDuplexUnsolicited Response

Page 6: WCF and WF in Framework 3.5

“Client”“Service”

Page 7: WCF and WF in Framework 3.5

Basic, Open

Comms

ASMX

Secure, Open

Comms

WSEFast,

Secure, Binary

Remoting

MSMQ, Queued,

Txns

Sys.Msg

Fast, Secure,Binary,Txns

Ent Svcs

Page 8: WCF and WF in Framework 3.5
Page 9: WCF and WF in Framework 3.5
Page 10: WCF and WF in Framework 3.5

“Hard” to call services without metadataService advertises

Description• Operations, messages...

PolicySecurity, reliability....

UsesWSDLWS-Policy & extensions

Contracts

Endpoints

Page 11: WCF and WF in Framework 3.5

Client

Binding(ordered list of channel types & config)

channel type N

channel type 2

channel type 1

config

config

config

Your code

Service

Your code

Met

adat

a

objects XML

formatting

channel

channel

channel

Transport Channel (HTTP, TCP, MSMQ, Pipes, Peer)

channel

channel

channel

decodingencoding

behaviours behaviours

Page 12: WCF and WF in Framework 3.5

Channels

Encoders Transports

Bindings

FormattersBehaviours

Behaviours

WSDLExporters

Page 13: WCF and WF in Framework 3.5
Page 14: WCF and WF in Framework 3.5

eXtensible Application Markup Language

XAML usageCompiled to produce executable codeDynamically loaded (parsed or pre-parsed)

Calculator c = new Calculator();Multiply m = new Multiply();m.P1 = 10;m.P2 = 20;c.Operations.Add(m)

Code

<Calculator> <Operations> <Multiply P1=“10” P2=“20”/></Operations></Calculator>

XAML

Page 15: WCF and WF in Framework 3.5

ToolsComponentsRuntimeServices

For building “workflow” into your own apps

Page 16: WCF and WF in Framework 3.5

Designer

Components

Activity

Activity

Activity

Activity

“Workflow Definition”(XAML, Code, Custom)

Page 17: WCF and WF in Framework 3.5

Host Process

“Workflow Definition”(XAML, Code, Custom)

Services (Pluggable)

Runtime

Page 18: WCF and WF in Framework 3.5

Activity

System.Workflow.ComponentModel.Activity

Property

Property

Property

( )ove r r i de Exe c ut e{ / / Do your work

( ) ;r e t ur n s t at us}

Page 19: WCF and WF in Framework 3.5
Page 20: WCF and WF in Framework 3.5
Page 21: WCF and WF in Framework 3.5

Workflow• WCF Send/Receive• WorkflowServiceHost

Communication Foundation• RESTFul Service Support• RSS + ATOM Support• Partial Trust Support• Durable Services

Page 22: WCF and WF in Framework 3.5

© 2008 Microsoft Ltd. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions,

it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.