Table of Contents

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

operation IWorkflowOperation

The operation that failed to restore.

foundry IWorkflowFoundry

The workflow foundry.

exception Exception

The exception that occurred during restoration.

duration TimeSpan

The execution duration before failure.

Properties

Duration

Gets the execution duration before failure.

public TimeSpan Duration { get; }

Property Value

TimeSpan

Exception

Gets the exception that occurred during restoration.

public Exception? Exception { get; }

Property Value

Exception

FailedAt

Gets the timestamp when restoration failed.

public DateTimeOffset FailedAt { get; }

Property Value

DateTimeOffset

Operation

Gets the operation that failed to restore.

public IWorkflowOperation Operation { get; }

Property Value

IWorkflowOperation