Пример #1
0
        public void Bootstrap()
        {
            IContractCallback contractCallback = new CallBk();
            InstanceContext   cntxt            = new InstanceContext(contractCallback);
            ContractClient    client           = new ContractClient(cntxt);

            MessageBox.Show(client.GetConnectionConfirmation(true), "Status Check", MessageBoxButton.OKCancel);
        }
Пример #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         IContractCallback contractCallback = new CallBk();
         InstanceContext   cntxt            = new InstanceContext(contractCallback);
         client = new ContractClient(cntxt, "WSDualHttpBinding_IContract");
         lbl_confirmation.Text = client.GetConnectionConfirmation();
     }
     catch (Exception exception) {
         lbl_confirmation.Text = exception.Message;
         app.Visible           = false;
     }
 }