■
Note
The
SvcConfigEditor.exe
utility can edit (or create) configuration files even if you do not select an ini-
tial WCF Service Library project. Using a Visual Studio 2008 command window, launch the tool and make use of
the File
➤
Open menu option to load an existing
*.config
file for editing.
Figure 25-14.
Working with the WCF Service Configuration Editor
We have no need to further configure our WCF MathService, so at this point we can move on to
the task of building a custom host.
Hosting the WCF Service As a Windows Service
As you might agree, hosting a WCF service from within a console application (or within a GUI desk-
top application, for that matter) is not an ideal choice for a production-level server, given that the
host must remain running visibly in the background to service clients. Even if you were to minimize
the hosting application to the Windows taskbar, it would still be far too easy to accidentally shut
down the host, thereby terminating the connection with any client applications.
C H A P T E R 2 5
■
I N T R O D U C I N G W I N D O W S C O M M U N I C AT I O N F O U N D AT I O N
903
8849CH25.qxd 10/16/07 10:51 AM Page 903
Do'stlaringiz bilan baham: |