This print for content only-size & color not accurate 7" X 9-1/4" / casebound / malloy


■ I N T R O D U C I N G   W I N D O W S   W O R K F L O W   F O U N D AT I O N 944



Download 21,46 Mb.
Pdf ko'rish
bet1789/1830
Sana28.09.2021
Hajmi21,46 Mb.
#188411
1   ...   1785   1786   1787   1788   1789   1790   1791   1792   ...   1830
Bog'liq
[book] [en] Pro C# 2008 and the NET 3.5 Platform Fourth Edition

I N T R O D U C I N G   W I N D O W S   W O R K F L O W   F O U N D AT I O N



944

8849CH26.qxd  10/10/07  11:46 AM  Page 944




Figure 26-23.

The fully configured SendActivity

Figure 26-24.

Communicating with a WCF service



Source Code

The WFMathClient example is included under the Chapter 26 subdirectory.



Building a Reusable WF Code Library

These first examples allowed you to play around with various WF activities at design time, interact

with the workflow runtime engine (by passing custom parameters), and get into the overall WF

mind-set using console-based WF hosts. While this is great from a learning point of view, I bet you

can easily envision building workflow-enabled Windows Forms applications, WPF applications, or

C H A P T E R   2 6  



I N T R O D U C I N G   W I N D O W S   W O R K F L O W   F O U N D AT I O N



945

8849CH26.qxd  10/10/07  11:46 AM  Page 945




ASP.NET web applications. Furthermore, I am sure you can imagine the need to reuse a workflow

across numerous applications by packaging the functionality within a reusable .NET code library.

The next WF example illustrates how to package workflows into *.dll assemblies and make use

of them from a hosting Windows Forms application (which, by the way, is the same process as host-

ing an external workflow within any executable, such as a WPF application). We will design a

workflow that models the basic process of checking credit to place an order to purchase an auto-

mobile from the AutoLot database created in Chapter 22.

Begin by selecting a Sequential Workflow Library project named CreditCheckWFLib (see 

Figure 26-25) and rename your initial file to CreditCheckWF.cs.

Figure 26-25.

Creating a Sequential Workflow Library project 

At this point, you will be provided with an initial workflow designer. Be aware that a single

workflow code library can contain multiple workflows, each of which can be inserted using the

Project ➤ Add New Item dialog box. In any case, add a reference to your AutoLotDAL.dll assembly

created in Chapter 22, and update your initial code file to import the AutoLotConnectedLayer name-

space: 



Download 21,46 Mb.

Do'stlaringiz bilan baham:
1   ...   1785   1786   1787   1788   1789   1790   1791   1792   ...   1830




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish