Assembly: OptimaJet.Workflow.Api

Interface IWorkflowApiBuilder

OptimaJet.Workflow.Api.Configuration.IWorkflowApiBuilder

Configures operations for one service provider after all module defaults have been loaded.

public interface IWorkflowApiBuilder

Methods

IOperationBuilder<TInput, TSuccess> ConfigureOperation<TInput, TSuccess>(Func<WorkflowApi, Operation<TInput, TSuccess>> selector) #
Selects an operation and returns its shared builder for this application.

Parameters

Name
Type
Description
selector
Func<WorkflowApi, OperationTInput, TSuccess>
A selector evaluated once during configuration, never during a request.

Returns

Type
Description
IOperationBuilder<TInput, TSuccess>
The builder for the selected operation; repeated selections preserve earlier callbacks.

Exceptions

Type
Description
ArgumentNullException
The selector is null.
InvalidOperationException
The operation is unavailable or configuration is frozen.

Remarks

Configuration runs once. Retained builders reject changes after mapping fixes the configuration.