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
foundryIWorkflowFoundryThe workflow foundry.
completedAtDateTimeOffsetThe completion timestamp.
successCountintThe number of successful compensations.
failureCountintThe number of failed compensations.
durationTimeSpanThe total compensation duration.
Properties
CompletedAt
Gets the timestamp when compensation completed.
public DateTimeOffset CompletedAt { get; }
Property Value
Duration
Gets the total compensation duration.
public TimeSpan Duration { get; }
Property Value
FailureCount
Gets the number of compensation operations that failed.
public int FailureCount { get; }
Property Value
SuccessCount
Gets the number of operations successfully compensated.
public int SuccessCount { get; }