Пример #1
0
        internal FaultContext(Exception exception, ActivityInstanceReference sourceReference)
        {
            Fx.Assert(exception != null, "Must have an exception.");
            Fx.Assert(sourceReference != null, "Must have a source.");

            this.Exception = exception;
            this.Source    = sourceReference;
        }
Пример #2
0
 public FaultWorkItem(FaultCallbackWrapper callbackWrapper, Exception propagatedException, ActivityInstance propagatedFrom, ActivityInstanceReference originalExceptionSource)
     : base(callbackWrapper.ActivityInstance)
 {
     _callbackWrapper         = callbackWrapper;
     _propagatedException     = propagatedException;
     _propagatedFrom          = propagatedFrom;
     _originalExceptionSource = originalExceptionSource;
 }
Пример #3
0
 public WorkItem CreateWorkItem(Exception propagatedException, ActivityInstance propagatedFrom, ActivityInstanceReference originalExceptionSource)
 {
     return(new FaultWorkItem(this, propagatedException, propagatedFrom, originalExceptionSource));
 }
Пример #4
0
 public WorkItem GenerateWorkItem(Exception propagatedException, ActivityInstance propagatedFrom, ActivityInstanceReference originalExceptionSource)
 {
     return(_callbackWrapper.CreateWorkItem(propagatedException, propagatedFrom, originalExceptionSource));
 }