Esempio n. 1
0
 private void ProcessConnection(Task <TcpClient> t)
 {
     try
     {
         var client   = t.Result;
         var streamId = _commandHandler.AddSource(client);
         var remote   = client.Client.RemoteEndPoint.ToString();
         Console.WriteLine($"New client {remote}");
     }
     catch (Exception e)
     {
         // TODO: log
         Console.WriteLine(e);
     }
     finally
     {
         FetchConnection();
     }
 }