■
Source Code
The MagicEightBallServiceClient project is located under the Chapter 25 subdirectory.
Configuring a TCP-Based Binding
At this point, the host and client applications are both configured to make use of the simplest of the
HTTP-based bindings, basicHttpBinding. Recall that the benefit of offloading settings to configura-
tion files is that we can change the underlying plumbing in a declarative manner.
To illustrate, let’s try a little experiment. Create a new folder on your C drive (or wherever you
happen to be saving your code) named EightBallTCP, and within this new folder create two subdi-
rectories named Host and Client.
Next, using Windows Explorer, navigate to the \bin\Debug folder of the host project and
copy MagicEightBallServiceHost.exe, MagicEightBallServiceHost.exe.config, and
MagicEightBallServiceLib.dll to the C:\EightBallTCP\Host folder. Open the *.config file for
editing using a simple text editor, and modify the existing contents as follows:
Do'stlaringiz bilan baham: |