Table of Contents

Class CompensationCompletedEventArgs

Namespace
WorkflowForge.Events
Assembly
WorkflowForge.dll

Event arguments for compensation completed events. Fired when compensation (rollback) completes, successfully or with failures.

public sealed class CompensationCompletedEventArgs : BaseWorkflowForgeEventArgs
Inheritance
CompensationCompletedEventArgs
Inherited Members

Constructors

CompensationCompletedEventArgs(IWorkflowFoundry, DateTimeOffset, int, int, TimeSpan)

Initializes a new instance of the CompensationCompletedEventArgs class.

public CompensationCompletedEventArgs(IWorkflowFoundry foundry, DateTimeOffset completedAt, int successCount, int failureCount, TimeSpan duration)

Parameters

foundry IWorkflowFoundry

The workflow foundry.

completedAt DateTimeOffset

The completion timestamp.

successCount int

The number of successful compensations.

failureCount int

The number of failed compensations.

duration TimeSpan

The total compensation duration.

Properties

CompletedAt

Gets the timestamp when compensation completed.

public DateTimeOffset CompletedAt { get; }

Property Value

DateTimeOffset

Duration

Gets the total compensation duration.

public TimeSpan Duration { get; }

Property Value

TimeSpan

FailureCount

Gets the number of compensation operations that failed.

public int FailureCount { get; }

Property Value

int

SuccessCount

Gets the number of operations successfully compensated.

public int SuccessCount { get; }

Property Value

int