Class WorkflowFailedEventArgs
- Namespace
- WorkflowForge.Events
- Assembly
- WorkflowForge.dll
Event arguments for workflow failed events. Fired when a workflow fails due to an uncaught exception.
public sealed class WorkflowFailedEventArgs : BaseWorkflowForgeEventArgs
- Inheritance
-
WorkflowFailedEventArgs
- Inherited Members
Constructors
WorkflowFailedEventArgs(IWorkflowFoundry, DateTimeOffset, Exception?, string, TimeSpan)
Initializes a new instance of the WorkflowFailedEventArgs class.
public WorkflowFailedEventArgs(IWorkflowFoundry foundry, DateTimeOffset failedAt, Exception? exception, string failedOperationName, TimeSpan duration)
Parameters
foundryIWorkflowFoundryThe workflow foundry.
failedAtDateTimeOffsetThe failure timestamp.
exceptionExceptionThe exception that caused the failure.
failedOperationNamestringThe name of the operation that failed.
durationTimeSpanThe total execution duration before failure.
Properties
Duration
Gets the total execution duration before failure.
public TimeSpan Duration { get; }
Property Value
Exception
Gets the exception that caused the workflow to fail.
public Exception? Exception { get; }
Property Value
FailedAt
Gets the timestamp when the workflow failed.
public DateTimeOffset FailedAt { get; }
Property Value
FailedOperationName
Gets the name of the operation that failed.
public string FailedOperationName { get; }