Event arguments for the ConnEventHandler type delegate.
Inheritance: System.EventArgs
Esempio n. 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());
     }
 }
Esempio n. 2
0
 private void handleDisconnect(object sender, ConnEventArgs e)
 {
     hitDisconnect++;
 }