Пример #1
0
 public void BeforeDisconnect(object sender, BeforeDisconnectEventArgs eventArgs)
 {
     Gui.InvokeOnUiThread(() =>
     {
         Gui.SetLogForeColor(_hightlightColor);
         WriteLogLine(LogLevel.Info, sender, $" => Disconnect({eventArgs.Disposition})");
     });
 }
Пример #2
0
 public void BeforeDisconnect(object sender, BeforeDisconnectEventArgs eventArgs)
 {
     Console.ForegroundColor = HighlightColor;
     WriteInfo(sender, String.Format("Disconnect({0})", eventArgs.Disposition));
     Console.ForegroundColor = StandardColor;
 }