Class FlowModule<TSettings>
Base class for all modules with settings.
public abstract class FlowModule<TSettings> : FlowModule, IFlowModule, IDisposable where TSettings : FlowModuleSettings, new()
Type Parameters
TSettingsThe class to use as settings for the module
- Inheritance
-
FlowModule<TSettings>
- Implements
- Derived
- Inherited Members
Constructors
FlowModule(FlowModuleType)
Constructor for FlowModule<TSettings>
public FlowModule(FlowModuleType moduleType)
Parameters
moduleTypeFlowModuleType
Properties
Settings
public TSettings Settings { get; protected set; }
Property Value
- TSettings
Methods
AllowMessageToEnterModule(IFlowMessage)
Get the setting class for the module
protected override bool AllowMessageToEnterModule(IFlowMessage message)
Parameters
messageIFlowMessage
Returns
- bool
The settings class of the type passed in as generic FlowModule<TSettings>
BypassMessageNotMatchingRules()
protected override bool BypassMessageNotMatchingRules()
Returns
LoadSettings(string)
public override sealed void LoadSettings(string settingsAsJson)
Parameters
settingsAsJsonstring
ValidateSettings(SettingsValidator)
public override sealed void ValidateSettings(SettingsValidator validator)
Parameters
validatorSettingsValidator