private void QueueMessageReceived(object sender, QueueMessageEventArgs queueMessageEventArgs) { Dispatcher.Invoke( () => queueUpdater.AddQueueMessage(queueMessageEventArgs.QueueId, queueMessageEventArgs.Sender, queueMessageEventArgs.Message)); }