Table of Contents

Interface IWorkflowOperation<TInput, TOutput>

Namespace
WorkflowForge.Abstractions
Assembly
WorkflowForge.dll

Strongly-typed workflow operation interface for operations with known input/output types. Provides compile-time type safety for data flow between operations.

public interface IWorkflowOperation<TInput, TOutput> : IWorkflowOperation, IDisposable

Type Parameters

TInput

The type of input data this operation expects.

TOutput

The type of output data this operation produces.

Inherited Members
Extension Methods

Methods

ForgeAsync(TInput, IWorkflowFoundry, CancellationToken)

Forges (executes) the operation with strongly-typed input and output.

Task<TOutput> ForgeAsync(TInput inputData, IWorkflowFoundry foundry, CancellationToken cancellationToken = default)

Parameters

inputData TInput

The typed input data for this operation.

foundry IWorkflowFoundry

The workflow foundry providing execution context and shared services.

cancellationToken CancellationToken

The cancellation token for cooperative cancellation.

Returns

Task<TOutput>

A task representing the asynchronous operation with typed output data.

Exceptions

ArgumentNullException

Thrown when foundry is null.

ObjectDisposedException

Thrown when the operation has been disposed.

RestoreAsync(TOutput, IWorkflowFoundry, CancellationToken)

Restores (compensates) the operation's effects with typed output data.

Task RestoreAsync(TOutput outputData, IWorkflowFoundry foundry, CancellationToken cancellationToken = default)

Parameters

outputData TOutput

The typed output data that was produced by this operation.

foundry IWorkflowFoundry

The workflow foundry providing execution context and shared services.

cancellationToken CancellationToken

The cancellation token for cooperative cancellation.

Returns

Task

A task representing the asynchronous restoration.

Exceptions

ArgumentNullException

Thrown when foundry is null.

ObjectDisposedException

Thrown when the operation has been disposed.