Пример #1
0
 protected void OnMessagePump(MessagePumpEventArgs e)
 {
     if (MessagePump != null)
     {
         try
         {
             MessagePump.Invoke(this, e);
         }
         catch (Exception ex)
         {
             logger.LogError($"Message: {ex.Message}\n Stack: {ex.StackTrace}");
         }
     }
 }
Пример #2
0
 protected void OnMessagePump(MessagePumpEventArgs e) => MessagePump?.Invoke(this, e);