Table of Contents

Class OperationFailedEventArgs

Namespace
WorkflowForge.Events
Assembly
WorkflowForge.dll

Event arguments for operation failed events. Fired when an operation fails with an exception.

public sealed class OperationFailedEventArgs : BaseWorkflowForgeEventArgs
Inheritance
OperationFailedEventArgs
Inherited Members

Constructors

OperationFailedEventArgs(IWorkflowOperation, IWorkflowFoundry, object?, Exception?, TimeSpan)

Initializes a new instance of the OperationFailedEventArgs class.

public OperationFailedEventArgs(IWorkflowOperation operation, IWorkflowFoundry foundry, object? inputData, Exception? exception, TimeSpan duration)

Parameters

operation IWorkflowOperation

The operation that failed.

foundry IWorkflowFoundry

The workflow foundry.

inputData object

The input data for the operation.

exception Exception

The exception that occurred.

duration TimeSpan

The execution duration before failure.

Properties

Duration

Gets the execution duration before failure.

public TimeSpan Duration { get; }

Property Value

TimeSpan

Exception

Gets the exception that occurred during operation execution.

public Exception? Exception { get; }

Property Value

Exception

InputData

Gets the input data for the operation.

public object? InputData { get; }

Property Value

object

Operation

Gets the operation that failed.

public IWorkflowOperation Operation { get; }

Property Value

IWorkflowOperation