Table of Contents

Class WorkflowForgeOptionsBase

Namespace
WorkflowForge.Options
Assembly
WorkflowForge.dll

Base class for all WorkflowForge options classes, providing common functionality for configuration section management, validation, and cloning.

public abstract class WorkflowForgeOptionsBase : ICloneable
Inheritance
WorkflowForgeOptionsBase
Implements
Derived
Inherited Members

Constructors

WorkflowForgeOptionsBase(string?, string)

Initializes a new instance of the WorkflowForgeOptionsBase class.

protected WorkflowForgeOptionsBase(string? sectionName, string defaultSectionName)

Parameters

sectionName string

The configuration section name. If null, uses the default section name.

defaultSectionName string

The default configuration section name for this options type.

Properties

Enabled

Gets or sets whether the associated feature/middleware is enabled. Default is true.

public bool Enabled { get; set; }

Property Value

bool

SectionName

Gets the configuration section name for this options class.

public string SectionName { get; }

Property Value

string

Methods

Clone()

Creates a deep copy of this options instance.

public abstract object Clone()

Returns

object

A new instance with the same configuration values.

Validate()

Validates the options configuration and returns a list of validation errors.

public abstract IList<string> Validate()

Returns

IList<string>

A list of validation error messages. Empty list indicates valid configuration.