Ejemplo n.º 1
0
 public void Handle(SimpleMessageInBackground message)
 {
     Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
     {
         MessageContent.Text = message.Text;
     });
 }
        public void SendMessageInBackground()
        {
            SimpleMessageInBackground message = new SimpleMessageInBackground("This is a message handled in a background thread");

            _eventAggregator.PublishOnBackgroundThread(message);
        }