Table of Contents

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

foundry IWorkflowFoundry

The workflow foundry.

failedAt DateTimeOffset

The failure timestamp.

exception Exception

The exception that caused the failure.

failedOperationName string

The name of the operation that failed.

duration TimeSpan

The total execution duration before failure.

Properties

Duration

Gets the total execution duration before failure.

public TimeSpan Duration { get; }

Property Value

TimeSpan

Exception

Gets the exception that caused the workflow to fail.

public Exception? Exception { get; }

Property Value

Exception

FailedAt

Gets the timestamp when the workflow failed.

public DateTimeOffset FailedAt { get; }

Property Value

DateTimeOffset

FailedOperationName

Gets the name of the operation that failed.

public string FailedOperationName { get; }

Property Value

string