Class WorkflowExecutionCapture
Captures step-level execution events during a workflow run. Implements WorkflowFramework.IWorkflowEvents for direct integration with IWorkflowBuilder<T>.WithEvents.
public sealed class WorkflowExecutionCapture : WorkflowEventsBase, IWorkflowEvents
- Inheritance
-
WorkflowEventsBaseWorkflowExecutionCapture
- Implements
-
IWorkflowEvents
- Inherited Members
-
WorkflowEventsBase.OnWorkflowStartedAsync(IWorkflowContext)WorkflowEventsBase.OnWorkflowCompletedAsync(IWorkflowContext)
Properties
CompletedCount
public int CompletedCount { get; }
Property Value
Events
public IReadOnlyList<StepEvent> Events { get; }
Property Value
FailedCount
public int FailedCount { get; }
Property Value
Methods
OnStepCompletedAsync(IWorkflowContext, IStep)
Called when a step completes successfully.
public override Task OnStepCompletedAsync(IWorkflowContext context, IStep step)
Parameters
contextIWorkflowContextThe workflow context.
stepIStepThe step that completed.
Returns
- Task
A task representing the asynchronous operation.
OnStepFailedAsync(IWorkflowContext, IStep, Exception)
Called when a step fails.
public override Task OnStepFailedAsync(IWorkflowContext context, IStep step, Exception exception)
Parameters
contextIWorkflowContextThe workflow context.
stepIStepThe step that failed.
exceptionExceptionThe exception that was thrown.
Returns
- Task
A task representing the asynchronous operation.
OnStepStartedAsync(IWorkflowContext, IStep)
Called when a step starts.
public override Task OnStepStartedAsync(IWorkflowContext context, IStep step)
Parameters
contextIWorkflowContextThe workflow context.
stepIStepThe step about to execute.
Returns
- Task
A task representing the asynchronous operation.