Example #1
0
        public ServiceInternalFaultInfo(StepStateNames targetStepStateName, ServiceInternalFaultType faultType, RollbackState rollbackState, string location, StepStateNames targetCancelStepStateName)
        {
            // The step in which to do the internal fault (other than user cancel)
            this.TargetStepStateName = targetStepStateName;

            // What type of intentional internal fault to do
            this.FaultType = faultType;

            // The type of user cancel to inject.  See ActionTest.PerformTestUserCancelIfRequested().
            this.RollbackType = rollbackState;

            // The engine location in which to perform the user cancel.  Note, not the same as the step to do it in, which is in TargetCancelStepStateName.
            this.Location = location;

            // The step in which to do user cancellation
            this.TargetCancelStepStateName = targetCancelStepStateName;

            this.CountForThrowThreeTimesFault = 3;
        }
Example #2
0
 public ServiceInternalFaultInfo(StepStateNames targetStepStateName, ServiceInternalFaultType faultType, RollbackState rollbackState, string location)
     : this(targetStepStateName, faultType, rollbackState, location, StepStateNames.None)
 {
 }
Example #3
0
 public ServiceInternalFaultInfo(StepStateNames targetStepStateName, ServiceInternalFaultType faultType)
     : this(targetStepStateName, faultType, RollbackState.NotRollingBack, null)
 {
     this.TargetStepStateName = targetStepStateName;
     this.FaultType           = faultType;
 }