Table of Contents

Class FilterCollection

Namespace
Fluxzy.Rules.Filters
Assembly
Fluxzy.Core.dll

A filter collection is a combination of multiple filter with a merging operator (OR / AND). Specific consideration A blank filter collection (no children) will always pass if operator is AND and will always fail if operator is OR

[FilterMetaData(null, LongDescription = "FilterCollection is a combination of multiple filters with a merging operator (OR / AND).")]
public class FilterCollection : Filter
Inheritance
FilterCollection
Inherited Members
Extension Methods

Constructors

FilterCollection()

[JsonConstructor]
public FilterCollection()

FilterCollection(params Filter[])

Create a combination of multiple filters. The default operation is OR.

public FilterCollection(params Filter[] filters)

Parameters

filters Filter[]

Properties

AutoGeneratedName

public override string AutoGeneratedName { get; }

Property Value

string

Children

public List<Filter> Children { get; set; }

Property Value

List<Filter>

ExplicitShortName

public string? ExplicitShortName { get; set; }

Property Value

string

FilterScope

public override FilterScope FilterScope { get; }

Property Value

FilterScope

GenericName

public override string GenericName { get; }

Property Value

string

Identifier

public override Guid Identifier { get; }

Property Value

Guid

Operation

public SelectorCollectionOperation Operation { get; set; }

Property Value

SelectorCollectionOperation

ShortName

public override string ShortName { get; }

Property Value

string

Methods

GetExamples()

public override IEnumerable<FilterExample> GetExamples()

Returns

IEnumerable<FilterExample>

InternalApply(ExchangeContext?, IAuthority, IExchange?, IFilteringContext?)

protected override bool InternalApply(ExchangeContext? exchangeContext, IAuthority authority, IExchange? exchange, IFilteringContext? filteringContext)

Parameters

exchangeContext ExchangeContext
authority IAuthority
exchange IExchange
filteringContext IFilteringContext

Returns

bool