예제 #1
0
 private Task SocketError(SocketErrorEventArgs e)
 {
     Console.WriteLine("Socket Error!");
     Console.WriteLine(e.ToString());
     Close();
     OnClosed?.Invoke();
     return(Task.CompletedTask);
 }
예제 #2
0
 private Task Client_SocketErrored(SocketErrorEventArgs e)
 {
     e.Client.DebugLogger.LogMessage(LogLevel.Info, "BotApp", e.ToString(), DateTime.Now);
     return(Task.CompletedTask);
 }