Ejemplo n.º 1
0
 public void OnClearLog(object sender, LogClearEventArgs args)
 {
     ThreadPool.QueueUserWorkItem(delegate
     {
         SynchronizationContext.SetSynchronizationContext(new DispatcherSynchronizationContext(Application.Current.Dispatcher));
         SynchronizationContext.Current.Send(pl =>
         {
             LogCollection.Clear();
         }, null);
     });
 }
Ejemplo n.º 2
0
 public void OnClearLog(object sender, LogClearEventArgs args)
 {
     ThreadPool.QueueUserWorkItem(delegate
     {
         SynchronizationContext.SetSynchronizationContext(new DispatcherSynchronizationContext(Application.Current.Dispatcher));
         SynchronizationContext.Current.Send(pl =>
         {
             LogCollection.Clear();
         }, null);
     });
 }