Beispiel #1
0
 public static void Disconnect()
 {
     try
     {
         MainProxy.Close();
         MainProxy = null;
     }
     catch { }
 }
Beispiel #2
0
 public static bool TestTCPNET()
 {
     try
     {
         EndpointAddress address = new EndpointAddress("net.tcp://localhost/TCPNET");
         NetTcpBinding binding = new NetTcpBinding();
         MainProxy = new XService.BServiceClient(binding, address);
         return true;
     }
     catch { return false; }
 }
Beispiel #3
0
 public static bool TestBSHTTP(string BaseAddress)
 {
     try
     {
         EndpointAddress address = new EndpointAddress(BaseAddress + "/BSHTTP");
         BasicHttpBinding binding = new BasicHttpBinding();
         MainProxy = new XService.BServiceClient(binding, address);
         return true;
     }
     catch { return false; }
 }