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