コード例 #1
0
        static void Main(string[] args)
        {
            ServiceHost serviceHost = new ServiceHost(typeof(GazePointService));

            serviceHost.AddServiceEndpoint(typeof(IGazePoint), new NetTcpBinding(), "net.tcp://localhost:11000/IGazePoint");
            serviceHost.Open();
            GazePointTcpClient.StartClient();

            Console.ReadKey();
            serviceHost.Close();
            GazePointTcpClient.StopClient();
        }
コード例 #2
0
 public void StopRecording(int a)
 {
     try
     {
         answer = a;
         b.Append("Answer," + answer + "\n");
         write_state = false;
         GazePointTcpClient.StopClient();
         Console.WriteLine("Stop Recording.");
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }