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}"); } } }
protected void OnMessagePump(MessagePumpEventArgs e) => MessagePump?.Invoke(this, e);