Class Filter
public abstract class Filter : PolymorphicObject
- Inheritance
-
Filter
- Derived
- Inherited Members
- Extension Methods
Properties
AutoGeneratedName
[YamlIgnore]
public virtual string AutoGeneratedName { get; }
Property Value
Category
[YamlIgnore]
public string Category { get; }
Property Value
Common
[YamlIgnore]
public virtual bool Common { get; set; }
Property Value
Description
public virtual string? Description { get; set; }
Property Value
FilterScope
The scope of this filter
[YamlIgnore]
public abstract FilterScope FilterScope { get; }
Property Value
FriendlyName
A friendly name
[YamlIgnore]
public string FriendlyName { get; }
Property Value
GenericName
[YamlIgnore]
public virtual string GenericName { get; }
Property Value
Identifier
An identifier for this filter, should be the same value for the same filter.
[YamlIgnore]
public virtual Guid Identifier { get; }
Property Value
Inverted
Negate the filter result
public bool Inverted { get; set; }
Property Value
Locked
public bool Locked { get; set; }
Property Value
PreMadeFilter
[YamlIgnore]
public virtual bool PreMadeFilter { get; }
Property Value
ScopeId
The scope id of this filter
[YamlIgnore]
public int ScopeId { get; }
Property Value
ShortName
[YamlIgnore]
public virtual string? ShortName { get; }
Property Value
Suffix
protected override string Suffix { get; }
Property Value
Methods
Apply(ExchangeContext?, IAuthority, IExchange?, IFilteringContext?)
public virtual bool Apply(ExchangeContext? exchangeContext, IAuthority authority, IExchange? exchange, IFilteringContext? filteringContext)
Parameters
exchangeContextExchangeContextauthorityIAuthorityexchangeIExchangefilteringContextIFilteringContext
Returns
GetDefaultSample()
protected virtual FilterExample? GetDefaultSample()
Returns
GetExamples()
public abstract IEnumerable<FilterExample> GetExamples()
Returns
Init(StartupContext)
Called once by the engine to initialize this directive
public virtual void Init(StartupContext startupContext)
Parameters
startupContextStartupContext
InternalApply(ExchangeContext?, IAuthority, IExchange?, IFilteringContext?)
protected abstract bool InternalApply(ExchangeContext? exchangeContext, IAuthority authority, IExchange? exchange, IFilteringContext? filteringContext)
Parameters
exchangeContextExchangeContextauthorityIAuthorityexchangeIExchangefilteringContextIFilteringContext