You are on page 1of 57

1

3
Avalon (WPF) Indigo (WCF)Windows Orchestration Engine (WF)

V1 V V2 V3
RT 1.1 RT RT
M RT M M
M
Beta 1 Beta 1 SP1 SP2 SP3 SP1 SP1 W2k3 Havi CTP-k

2000 2003 2004 2005 2006

4
5
6
8
9
10
11
12
13
Type DRAWITEMSTRUCT
    CtlType As Long     ' -Not needed
    CtlID As Long     ' -The ID of the control when
created
    ItemId As Long     ' -The ListIndex of the item to
draw
    ItemAction As Long     ' -What action is causing the
draw call
    ItemState As Long     ' -The state of the item to be
drawn
    hwndItem As Long     ' -The hWnd of the window to
draw in
    hDC As Long     ' -The DC of the window to draw in
    rcItem As RECT     ' -The bounding rectangle of the
item to be drawn
    itemData As Long     ' -The item data of the item to
be drawn
End Type

14
15
16
17
18
19
20
21
23
Eddig:
Remoti COM
ng D/CO
WSE M
MSMQ ASMX COM+
Sokféle, nehezen megközelíthető lehetőség

Ezután:

Windows Communication
Foundation

Teljeskörű egyesítés, a meglévő értékek megtartása

24
Boundaries Are Explicit

Services Are Autonomous

Share Schema & Contract, Not Class

Compatibility Based On Policy

SERVICE ORIENTATION

25
Data

Service Model
Metadata
Address, Binding,
Contract, and
Behaviors

Channel Layer
Protocols,
Encoders, and
Transports Messages
Client Service
A B C

C B A Message A B C

Address Binding Contract


(Hol) (Hogyan) (Mit)

27
[ServiceContract]
public interface IMyInterface { Service Contract
[OperationContract] Definition
public MyOutputType MyMethod(MyInputType myData);
}

[ServiceBehavior(InstanceContextMode=Single]
public class MyService: IMyInterface {
public MyOutputType MyMethod(MyInputType myData) {
//my code
Contract

Implementation
(Service Type)
}
}

<service
name=“MyService”>
<endpoint
address=“MyAddress” Endpoint
binding=“netTcpBinding” Configuration
contract=“IMyInterface” />
<service/>
Hosztolás az IIS-ben:

• HTTP kötés: Windows XP® SP2 & WS2K3


• Tetszőleges kötés: Windows Vista® and Windows Server®
“Longhorn”
• Proven reliability, scalability, and security
• A szolgáltatás azonosításhoz .svc fájl szükséges

Hosztolás tetszőleges .NET processzben:

• Szabadon választott kommunikációs stack


• Console .EXE, WinForm alkalkamazás, OS service, WPF, WF

29
Transport Encoder Security Reliability Protocol

HTTP
TCP Binary
Text WS-* WS-* WS-*

HTTP Text

TCP Binary WS-* WS-* WS-*

Pipes MTOM Custom Custom Custom

MSMQ Custom

Custom
30
Előregyártott kötések a leggyakoribb helyzetekhez:
<endpoint
name=“MyService”
address=“MyAddress”
binding=“netTcpBinding”
contract=“IMyInterface”
/>

Kötés Felhasználási terület

BasicHttpBinding Basic Profile 1.1 Interop and Intergration w/ASMX


Basis for WS-* interop
WsHttpBinding
Supports WS-Security, WS-RM, WS-Tx
.NET.NET across processes
NetTcpBinding
Secure, reliable duplexed
.NET.NET across processes
NetNamePipesBinding
Secure, reliable duplexed
NetMSMQBinding .NET.NET via MSMQ

NetPeerTcpBinding .NET Peer  Peer


31
<services>
<service
name=“MyService”>
<endpoint
address=“MyAddress”
binding=“wsHttpBinding”
bindingConfiguration=“MyReliableBinding”
contract=“IMyInterface” />
<service/>
</services>
<bindings>
<wsHttpBinding>
<binding name=“MyReliableBinding”>
<reliableSession
enabled=“true”
ordered=“true”
</binding>
</wsHttpBinding>
</bindings>

32
<?xml version=“1.0” encoding=“UTF-8” ?>
<configuration>
<system.serviceModel>
<services>
<service
name=“MyService”>
<endpoint
address=“MyAddress”
binding=“customBinding”
bindingConfiguration=“MyCustomBinding”
contract=“IMyInterface” />
</service>
</services>
<bindings>
<customBinding>
<binding name="MyCustomBinding">
<reliableSession advancedFlowControl="true” />
<security authenticationMode=“Kerberos” />
<binaryMessageEncoding />
<tcpTransport maxMessageSize=“9223372036854775807" />
</binding>
</customBinding>
</bindings>
</system.serviceModel>
</configuration>

33
34
35
36
38
• FELHASZNÁLÓK - • ALKALMAZÁSOK -
SZEREPKÖRÖK SZOLGÁLTATÁSOK
• Modell: flexibilis, dinamikus • Modell: Deklarált
• Adat: Dokumentumok • Adat: Struktúrált,
tranzakcionált

Árajánlat adás… B2B integráció…


Szekvenciális Állapotgép Szabályvezérelt
Workflow aktivitás
Event State1 Rule1 Step1
Step1 Szekvenicáli
s Data
Folyamat Event State2
Rule2 Step2
Ismert a
Step2 futási logika Külső események Szabályok és az
hajták a folyamatot adattartalmak
hajtják
• Formális, előre • Reaktív, • Adatvezérelt
meghatározott eseményvezérelt • Menetközben
• Ügyvitel • Átlépés, változtatható
automatizálás újrafuttatás, szabályok
• Folyamatábrákkal delegálás
leírható • Állapot gráffal
modellezhető
using System.Workflow.Activities;
public class MyWorkflow : SequentialWorkflow {
// Itt definiálódnak az aktitások
}

<SequentialWorkflowActivity x:Class=“MyWorkFlow"
x:Name=“MyWorkflow"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/workflow">
<!– Itt definiálódnak az aktivitások -->
</SequentialWorkflow>

42
using System.Workflow.ComponentModel;
public class SendMail : System.Workflow.ComponentModel.Activity {
public SendMail() { InitializeComponent(); }
protected override Status Execute(ActivityExecutionContext context) {
// e-mail küldés logikája
return Status.Closed;
}

public string subject;


public string Subject {
get { return subject; }
set { this.subject = value; }
}
private void InitializeComponent() { // designer generated
this.ID = "SendMail";
}
}
44
Workflow

Windows
Workflow Foundation
Runtime Engine

Runtime Services
File
Fájl
adatbázis vagyrendszer
Store vagy … Persistence service

Saját implementációt is készíthetünk!


Workflow

Windows
Workflow Foundation
Runtime Engine

Runtime Services
File
Fájl
adatbázis vagy Store vagy …
rendszer Tracking service
[ExternalDataExchange]
public interface ICommunicate {
event EventHandler<SomeEventArgs>
SomeEvent;
void SomeMethod(int x);
}
Tisztán Markup plusz Tisztán kód Alkalmazás
markup kód generálja
Futás időben jön
XAML XAML C#/V C#/V létre
B B

XAML C#/V
B

Workflow Compiler
wfc.exe

.NET assembly
C#/VB Compiler • ctor defines
workflow
Kommunikáció
Felhasználói Runtime
felület szolgáltatások

Vezérlési Futási
logika logika

Üzleti
szabályok Kompozició
Office “12” Workflow vízió
A dokumentum centrikus workflow minden Office alkalmazás része
Előregyártott és egyedileg kifejleszthető folyamatok
Integráció a SharePoint platformmal

Workflow Enabled Office

OutLook: SharePoint designer: SharePoint: Word, PowerPoint, Excel,


Kiértesítések és Munkaterületek és Szerver oldali workflow InfoPath:
feladatok folyamatok testreszabása hoszting Workdlow indítása, részvétel a
folyamatokban
51
52
V1
RT
M

Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4
2005 2006 2007

53
54
55
56
© 2006
2006 Microsoft Corporation. Minden jog fenntartva.
Az előadás csupán tájékoztató jellegű, a Microsoft Magyarország a benne szereplő esetleges hibákért vagy tévedésekért semmilyen felelősséget nem vállal.

You might also like