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
sectionNamestringThe configuration section name. If null, uses the default section name.
defaultSectionNamestringThe 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
SectionName
Gets the configuration section name for this options class.
public string SectionName { get; }
Property Value
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()