Ejemplo n.º 1
0
 internal void HandleGenericException(AggregateException e)
 {
     exception = e;
     status    = TaskStatus.Faulted;
     if (taskScheduler != null && taskScheduler.FireUnobservedEvent(exception).Observed)
     {
         exceptionObserved = true;
     }
 }
Ejemplo n.º 2
0
 internal void HandleGenericException(AggregateException e)
 {
     exception = e;
     Thread.MemoryBarrier();
     status = TaskStatus.Faulted;
     if (scheduler != null && scheduler.FireUnobservedEvent(exception).Observed)
     {
         exceptionObserved = true;
     }
 }