Event arguments for the ConnEventHandler type delegate.
Наследование: System.EventArgs
Пример #1
0
 private static void WriteEvent(String label, ConnEventArgs e)
 {
     if (e == null)
     {
         Console.Out.WriteLine(label);
     }
     else if (e?.Error == null)
     {
         Console.Out.WriteLine(BeginFormatMessage(label, e.Conn, null, null).ToString());
     }
     else
     {
         Console.Error.WriteLine(BeginFormatMessage(label, e.Conn, null, e.Error.Message).ToString());
     }
 }
Пример #2
0
 private void handleDisconnect(object sender, ConnEventArgs e)
 {
     hitDisconnect++;
 }