Class WorkflowCompletedEventArgs
- Namespace
- WorkflowForge.Events
- Assembly
- WorkflowForge.dll
Event arguments for workflow completed events. Fired when a workflow completes successfully.
public sealed class WorkflowCompletedEventArgs : BaseWorkflowForgeEventArgs
- Inheritance
-
WorkflowCompletedEventArgs
- Inherited Members
Constructors
WorkflowCompletedEventArgs(IWorkflowFoundry, DateTimeOffset, IReadOnlyDictionary<string, object?>, TimeSpan)
Initializes a new instance of the WorkflowCompletedEventArgs class.
public WorkflowCompletedEventArgs(IWorkflowFoundry foundry, DateTimeOffset completedAt, IReadOnlyDictionary<string, object?> finalProperties, TimeSpan duration)
Parameters
foundryIWorkflowFoundryThe workflow foundry.
completedAtDateTimeOffsetThe completion timestamp.
finalPropertiesIReadOnlyDictionary<string, object>The final properties from the foundry.
durationTimeSpanThe total execution duration.
Properties
CompletedAt
Gets the timestamp when the workflow completed.
public DateTimeOffset CompletedAt { get; }
Property Value
Duration
Gets the total execution duration.
public TimeSpan Duration { get; }
Property Value
FinalProperties
Gets the final foundry properties at completion.
public IReadOnlyDictionary<string, object?> FinalProperties { get; }