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



Download 21,46 Mb.
Pdf ko'rish
bet1710/1830
Sana28.09.2021
Hajmi21,46 Mb.
#188411
1   ...   1706   1707   1708   1709   1710   1711   1712   1713   ...   1830
Bog'liq
[book] [en] Pro C# 2008 and the NET 3.5 Platform Fourth Edition

Members

Meaning in Life

Authorization

This property gets the authorization level for the service being hosted.

AddServiceEndpoint()

This method allows you to programmatically register an endpoint to the

host.


BaseAddresses

This property obtains the list of registered base addresses for the current

service.

BeginOpen()

These methods allow you to asynchronously open and close a 

BeginClose()

ServiceHost object, using the standard asynchronous .NET delegate

syntax.


CloseTimeout

This property allows you to set and get the time allowed for the service to

close down.

Credentials

This property obtains the security credentials used by the current

service.


EndOpen()

These methods are the asynchronous counterparts to BeginOpen()

EndClose()

and BeginClose().

OpenTimeout

This property allows you to set and get the time allowed for the service to

start up.

State


This property gets a value that indicates the current state of the

communication object, represented by the CommunicationState enum

(opened, closed, created, etc.).

To illustrate some additional aspects of ServiceHost, update your Program class with a new

static method that prints out various aspects of the current host:

static void DisplayHostInfo(ServiceHost host)

{

Console.WriteLine();



Console.WriteLine("***** Host Info *****");

Console.WriteLine("Name: {0}",

host.Description.ConfigurationName);

Console.WriteLine("Port: {0}",

host.BaseAddresses[0].Port);

Console.WriteLine("LocalPath: {0}",

host.BaseAddresses[0].LocalPath);

Console.WriteLine("Uri: {0}",

host.BaseAddresses[0].AbsoluteUri);

Console.WriteLine("Scheme: {0}",

host.BaseAddresses[0].Scheme);

Console.WriteLine("**********************");

Console.WriteLine();

}

Assuming you call this new method from within Main() after opening your host:



using (ServiceHost serviceHost = new ServiceHost(typeof(MagicEightBallService)))

{

// Open the host and start listening for incoming messages.



serviceHost.Open();


Download 21,46 Mb.

Do'stlaringiz bilan baham:
1   ...   1706   1707   1708   1709   1710   1711   1712   1713   ...   1830




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2025
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