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
Figure 25-19.
Advanced client-side proxy configuration options
At this point, the proxy code will contain additional methods that allow you to invoke each
member of the service contract using the expected Begin/End asynchronous invocation pattern
described in Chapter 18. Here is a simple implementation that makes use of a lambda expression
rather than a strongly typed AsyncCallback delegate.
using System;
using MathClient.ServiceReference;
using System.Threading;
namespace MathClient
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("***** The Async Math Client *****\n");
using (BasicMathClient proxy = new BasicMathClient())
{
proxy.Open();
Do'stlaringiz bilan baham: