Esempio n. 1
0
 public string GetConfidentialServiceClient()
 {
     CompanyService.MyCompanyConfidentialServiceClient client2
         = new CompanyService.MyCompanyConfidentialServiceClient(
               "NetTcpBinding_IMyCompanyConfidentialService");
     return(client2.GetCofidentialInformation());
 }
Esempio n. 2
0
 protected void Button2_Click(object sender, EventArgs e)
 {
     CompanyService.MyCompanyConfidentialServiceClient cClient = new
                                                                 CompanyService.MyCompanyConfidentialServiceClient("NetTcpBinding_IMyCompanyConfidentialService");
     Label2.Text = cClient.GetConfidentialInformation();
 }