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



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

name="WSHttpBinding_IBasicMath"

>









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



943

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




Figure 26-22.

Selecting the Add() operation 

Copy this value to your clipboard and paste it into the ChannelToken property using the IDE’s

Properties window. Once you have done so, you will notice that the ChannelToken property has two

subnodes named EndpointName and OwnerActivityName. Because the MathService exposes only a

single endpoint, copy the same value set to ChannelToken (WSHttpBinding_IBasicMath) to the

EndpointName, and select the name of your workflow instance (WCFSendAddActivity) as the owner.

Last but not least, we need to connect the x and y parameters of the Add() method to our

FirstNumber and SecondNumber properties, and the return value to our Result property. The process

of doing so is identical to configuring the InvokeWebService activity (click the ellipsis buttons to pick

the property name). Figure 26-23 shows the fully configured SendActivity.

To view the result, place a final Code activity on your workflow designer and assign the

ExecuteCode value to a method named WCFResult(), which is implemented like so:

private void WCFResult(object sender, EventArgs e)

{

Console.WriteLine("***** WCF Service Addition *****");



Console.WriteLine("{0} + {1} = {2}",

FirstNumber, SecondNumber, Result);

}

Figure 26-24 shows the final output.



C H A P T E R   2 6  


Download 21,46 Mb.

Do'stlaringiz bilan baham:
1   ...   1784   1785   1786   1787   1788   1789   1790   1791   ...   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