void logger_LogReceived(object sender, LogReceivedEventArgs e)
 {
     if (Dispatcher.CheckAccess())
         DoSomethingWithLog(e.Log);
     else
         Dispatcher.BeginInvoke(() => DoSomethingWithLog(e.Log));
 }
 void svc_MessageReceived(object sender, LogReceivedEventArgs e)
 {
     Log log = e.Log;
     if (LogReceived != null)
     {
         LogReceived(this, e);
     }
 }
 void embeddedLogger_LogReceived(object sender, LogReceivedEventArgs e)
 {
     if (Deployment.Current.Dispatcher.CheckAccess())
         ProcessEvent(e.Log);
     else
         Deployment.Current.Dispatcher.BeginInvoke(() => ProcessEvent(e.Log));
 }
 void externalLogger_LogReceived(object sender, LogReceivedEventArgs e)
 {
     ProcessEvent(e.Log);
 }