Ejemplo n.º 1
0
 void startStringListener(string endpoint)
 {
     try
     {
         recvr = new stringReceiver();
         recvr.CreateRecvChannel(endpoint);
         rcvThrd = new Thread(new ThreadStart(this.strThreadProc));
         //rcvThrd.IsBackground = true;
         rcvThrd.Start();
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.ToString());
     }
 }
Ejemplo n.º 2
0
 void startListener(string endpoint)
 {
     //createlistener
     //string localport = "8080";
     //string endpoint = "http://localhost:8080/IStringCommunicator";
     try
     {
         recvr = new stringReceiver();
         recvr.CreateRecvChannel(endpoint);
         rcvThrd = new Thread(new ThreadStart(this.ThreadProc));
         rcvThrd.Start();
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.ToString());
     }
 }