示例#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);