Class OperationRestoreFailedEventArgs
- Namespace
- WorkflowForge.Events
- Assembly
- WorkflowForge.dll
Event arguments for operation restore failed events. Fired when an operation's restoration (compensation/rollback) fails with an exception.
public sealed class OperationRestoreFailedEventArgs : BaseWorkflowForgeEventArgs
- Inheritance
-
OperationRestoreFailedEventArgs
- Inherited Members
Constructors
OperationRestoreFailedEventArgs(IWorkflowOperation, IWorkflowFoundry, Exception?, TimeSpan)
Initializes a new instance of the OperationRestoreFailedEventArgs class.
public OperationRestoreFailedEventArgs(IWorkflowOperation operation, IWorkflowFoundry foundry, Exception? exception, TimeSpan duration)
Parameters
operationIWorkflowOperationThe operation that failed to restore.
foundryIWorkflowFoundryThe workflow foundry.
exceptionExceptionThe exception that occurred during restoration.
durationTimeSpanThe execution duration before failure.
Properties
Duration
Gets the execution duration before failure.
public TimeSpan Duration { get; }
Property Value
Exception
Gets the exception that occurred during restoration.
public Exception? Exception { get; }
Property Value
FailedAt
Gets the timestamp when restoration failed.
public DateTimeOffset FailedAt { get; }
Property Value
Operation
Gets the operation that failed to restore.
public IWorkflowOperation Operation { get; }