Esempio n. 1
0
        public void Log(Exception exception)
        {
            if (exception is NotLoggedException)
            {
                return;
            }

            _dispatcher.BeginInvoke(() => { throw exception; });
        }
Esempio n. 2
0
 public static Task ThenInvoke(this Task task, IThreadDispatcher dispatcher, Action <Task> action)
 {
     // todo: move to vm and use there only
     return(task.ContinueWith(t => { dispatcher.BeginInvoke(() => { action(t); }); }));
 }
Esempio n. 3
0
 public static Task ThenInvoke <T>(this Task <T> task, IThreadDispatcher dispatcher, Action <Task <T> > action)
 {
     return(task.ContinueWith(t => { dispatcher.BeginInvoke(() => action(t)); }));
 }