Table of Contents

Class RuleConfigContainer

Namespace
Fluxzy.Rules
Assembly
Fluxzy.Core.dll

This is a companion for deserialization rules from config files It allows multiple action declaration inside the same rule

public class RuleConfigContainer
Inheritance
RuleConfigContainer
Inherited Members

Constructors

RuleConfigContainer(Filter)

[JsonConstructor]
public RuleConfigContainer(Filter filter)

Parameters

filter Filter

Properties

Action

public Action? Action { get; set; }

Property Value

Action

Actions

public List<Action>? Actions { get; set; }

Property Value

List<Action>

Filter

public Filter Filter { get; set; }

Property Value

Filter

Name

public string? Name { get; set; }

Property Value

string

Order

public int Order { get; set; }

Property Value

int

Methods

CreateFrom(IEnumerable<Rule>)

public static IEnumerable<RuleConfigContainer> CreateFrom(IEnumerable<Rule> rules)

Parameters

rules IEnumerable<Rule>

Returns

IEnumerable<RuleConfigContainer>

GetAllActions()

public IEnumerable<Action> GetAllActions()

Returns

IEnumerable<Action>

GetAllRules()

public IEnumerable<Rule> GetAllRules()

Returns

IEnumerable<Rule>