public static void Disconnect()
 {
     try
     {
         client = null;
     }catch (Exception ex)
     {
         Console.WriteLine(ex.Message);
     }
 }
Esempio n. 2
0
 public ServerStreamingConnection()
 {
     try {
         TTransport transport = new TSocketTransport("localhost", 8000);
         TProtocol  protocol  = new TBinaryProtocol(transport);
         streamingService = new StreamingService.Client(protocol);
     } catch (Exception ex) {
         Console.WriteLine(ex);
     }
 }
 public static void Connect()
 {
     try
     {
         TTransport transport = new TSocketTransport("localhost", 8000);
         TProtocol  protocol  = new TBinaryProtocol(transport);
         client = new StreamingService.Client(protocol);
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.Message);
     }
 }