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 941



Download 21,46 Mb.
Pdf ko'rish
bet1786/1830
Sana28.09.2021
Hajmi21,46 Mb.
#188411
1   ...   1782   1783   1784   1785   1786   1787   1788   1789   ...   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



941

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




Recall that in Chapter 25 we defined a WCF service contract that also manipulated two num-

bers via an addition operation, using the following service interface:

namespace MathServiceLibrary

{

[ServiceContract(Namespace = "www.intertech.com")]



public interface IBasicMath

{

[OperationContract]



int Add(int x, int y);

}

}



Also recall that this interface was implemented on a type named MathService and hosted by a

Windows service named MathWindowsServiceHost.exe. The Windows service exposed said function-

ality from the following endpoint:

http://localhost:8080/MathService

Assuming you created and installed this service (see Chapter 25 for details), you can update

your current WFMathClient project to communicate with it using the SendActivity type. The first

step is to add a reference to the service in the expected manner, using the Add Service Reference

dialog box (see Figure 26-20). This will generate a client-side proxy and update your App.config file

with WCF-specific settings. 

Figure 26-20.

Referencing the WCF MathService

Now, drag a SendActivity type onto your WF designer surface (named WCFSendAddActivity),

directly after the final Code activity. Using the Properties window, click the ellipsis button of the

ServiceOperationInfo property and from the resulting dialog box click Import. This will present you

with a secondary dialog box where you are able to associate a SendActivity type with a metadata

C H A P T E R   2 6  




Download 21,46 Mb.

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