예제 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         IContractCallback contractCallback = new CallBk();
         InstanceContext   cntxt            = new InstanceContext(contractCallback);
         client = new ContractClient(cntxt, "WSDualHttpBinding_IContract");
     }
 }
예제 #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)
     {
         //lbl_confirmation.Text = exception.Message;
         //app.Visible = false;
     }
 }