protected override void OnInitialized(EventArgs e) { base.OnInitialized(e); // Handle button click. _equalsButton.Click += _equalsButton_Click; // In partial trust, only allowed to call back into the originating server. string serviceUri = GetUpdateLocationUrl(); serviceAddress = new EndpointAddress(serviceUri); proxy = new CalcPlusClient(new BasicHttpBinding(), serviceAddress); _numberTextBlock.Text = serviceUri; }
protected override void OnInitialized(EventArgs e) { base.OnInitialized(e); // Handle button click. _equalsButton.Click += _equalsButton_Click; // In partial trust, only allowed to call back into the originating server. string serviceUri = GetUpdateLocationUrl(); serviceAddress = new EndpointAddress(serviceUri); proxy = new CalcPlusClient(new WSHttpBinding(SecurityMode.None), serviceAddress); _numberTextBlock.Text = serviceUri; }