Professional Documents
Culture Documents
NETv3 Áttekintés
NETv3 Áttekintés
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
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
24
Boundaries Are Explicit
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
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:
29
Transport Encoder Security Reliability Protocol
HTTP
TCP Binary
Text WS-* WS-* WS-*
HTTP Text
MSMQ Custom
Custom
30
Előregyártott kötések a leggyakoribb helyzetekhez:
<endpoint
name=“MyService”
address=“MyAddress”
binding=“netTcpBinding”
contract=“IMyInterface”
/>
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
<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;
}
Windows
Workflow Foundation
Runtime Engine
Runtime Services
File
Fájl
adatbázis vagyrendszer
Store vagy … Persistence service
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
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.