25.14. Invoking a Service Asynchronously from the Client

Create a new Console Application named MathClient and set a Service Reference to your running WCF service (that is current hosted by the Windows service running in the background) using the Add Service Reference option of Visual Studio (you'll need to type the URL in the Addresses box). Don't click the OK button yet, however! Notice that the Add Service Reference dialog box has an Advanced button in the lower-left corner (see Figure 25-17).

Figure 25.17. Referencing your MathService and getting ready to configure advanced settings

Click this button now to view the additional proxy configuration ...

Get Pro C# 2010 and the .NET 4 Platform, Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.