Exemple #1
0
 public static void NetworkStreamError(object sender, SingleMessageEventArgs e)
 {
     Console.WriteLine($"Ошибка соединения с сервером. {e.Message}");
     _cts.Cancel();
     _serverShutdown = true;
 }
Exemple #2
0
 private static void MessageReceived(object sender, SingleMessageEventArgs e)
 {
     Console.WriteLine(e.Message);
 }