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
operationIWorkflowOperationThe operation that failed.
foundryIWorkflowFoundryThe workflow foundry.
inputDataobjectThe input data for the operation.
exceptionExceptionThe exception that occurred.
durationTimeSpanThe execution duration before failure.
Properties
Duration
Gets the execution duration before failure.
public TimeSpan Duration { get; }
Property Value
Exception
Gets the exception that occurred during operation execution.
public Exception? Exception { get; }
Property Value
InputData
Gets the input data for the operation.
public object? InputData { get; }
Property Value
Operation
Gets the operation that failed.
public IWorkflowOperation Operation { get; }