Class RetryActivitySignal
Signal used for retrying an activity.
Inheritance
Inherited Members
Namespace: Kephas.Workflow.Interaction
Assembly: Kephas.Workflow.dll
Syntax
public class RetryActivitySignal : Exception, ISerializable, ISignal, ISeverityQualifiedException
Constructors
| Improve this Doc View SourceRetryActivitySignal(IActivityContext, Nullable<Int32>)
Initializes a new instance of the RetryActivitySignal class.
Declaration
public RetryActivitySignal(IActivityContext activityContext = null, int? maxRetryCount = default(int? ))
Parameters
Type | Name | Description |
---|---|---|
IActivityContext | activityContext | Optional. The activity context (in the parent hierarchy) from which the retry should continue. |
System.Nullable<System.Int32> | maxRetryCount | Optional. The maximum number of retries. |
Remarks
If no activity context is specified, the current executed activity should be retried. If no maximum retry count is specified, the retries are performed an unlimited number of times.
RetryActivitySignal(String, IActivityContext, Nullable<Int32>)
Initializes a new instance of the RetryActivitySignal class.
Declaration
public RetryActivitySignal(string message, IActivityContext activityContext = null, int? maxRetryCount = default(int? ))
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message. |
IActivityContext | activityContext | Optional. The activity context (in the parent hierarchy) from which the retry should continue. |
System.Nullable<System.Int32> | maxRetryCount | Optional. The maximum number of retries. |
Remarks
If no activity context is specified, the current executed activity should be retried. If no maximum retry count is specified, the retries are performed an unlimited number of times.
RetryActivitySignal(String, Exception, IActivityContext, Nullable<Int32>)
Initializes a new instance of the RetryActivitySignal class.
Declaration
public RetryActivitySignal(string message, Exception inner, IActivityContext activityContext = null, int? maxRetryCount = default(int? ))
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message. |
System.Exception | inner | The inner exception. |
IActivityContext | activityContext | The execution context (in the parent hierarchy) from which the retry should continue (optional). |
System.Nullable<System.Int32> | maxRetryCount | The maximum number of retries (optional). |
Remarks
If no execution context is specified, the current executed task should be retried. If no maximum retry count is specified, the retries are performed an unlimited number of times.
Properties
| Improve this Doc View SourceActivityContext
Gets a context for the activity.
Declaration
public IActivityContext ActivityContext { get; }
Property Value
Type | Description |
---|---|
IActivityContext | The activity context. |
MaxRetryCount
Gets the number of maximum retries.
Declaration
public int? MaxRetryCount { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> | The number of maximum retries. |
Severity
Gets the severity.
Declaration
public SeverityLevel Severity { get; }
Property Value
Type | Description |
---|---|
SeverityLevel | The severity. |