public MainPage() { InitializeComponent(); // Setup up client channel for the Polling Service var address = new EndpointAddress("http://localhost:7101/OrderPollingService.svc"); var binding = new PollingDuplexHttpBinding(); _pollingClient = new OrderPollingServiceClient(binding, address); _pollingClient.CancelOrderResponseReceived += OnCancelOrderResponseReceived; _pollingClient.ReceiveOrderCancellationsReceived += OnReceiveOrderCancellationsReceived; _pollingClient.GetOrderCancellationsAsync(); }