Example #1
0
        protected virtual void OnFaulted(object sender, TaskFaultedEventArgs args)
        {
            var handler = Faulted;

            if (handler != null)
            {
                syncContext.Post(delegate { handler(sender, args); }, null);
            }
        }
Example #2
0
 private void taskm_Faulted(object sender, TaskFaultedEventArgs e)
 {
     logger.Log(string.Format(Resources.ReadError, GetMemoryType(), e.Exception), Category.Exception, Priority.None);
     Exception = e.Exception;
     Dlg.Result = false;
     Dlg.Close();
 }
Example #3
0
 private void taskm_Faulted(object sender, TaskFaultedEventArgs e)
 {
     RaiseCanExecuteChanged();
 }