CompensatingAction Constructor
Creates an instance of the Compensating Action with the action type and optional properties.
Namespace: Scanjour.Workflow4.BaseAssembly: Scanjour.Workflow4.Base (in Scanjour.Workflow4.Base.dll) Version: 24.4.0.0 (24.4.0.0)
public CompensatingAction(
CompensatingActionActionType type,
TimeSpan? delay = null,
int? maxRetryCount = null
)
Public Sub New (
type As CompensatingActionActionType,
Optional delay As TimeSpan? = Nothing,
Optional maxRetryCount As Integer? = Nothing
)
public:
CompensatingAction(
CompensatingActionActionType type,
Nullable<TimeSpan> delay = nullptr,
Nullable<int> maxRetryCount = nullptr
)
new :
type : CompensatingActionActionType *
?delay : Nullable<TimeSpan> *
?maxRetryCount : Nullable<int>
(* Defaults:
let _delay = defaultArg delay null
let _maxRetryCount = defaultArg maxRetryCount null
*)
-> CompensatingAction
Parameters
- type CompensatingActionActionType
- The suggested type of action.
- delay NullableTimeSpan (Optional)
- If the suggested type of action is Retry then this parameter specifies the delay
in seconds between the retries.
- maxRetryCount NullableInt32 (Optional)
- If the suggested type of action is Retry then this parameter specifies the
maximum number of times the operation should be retried.