Class AuthorityFilter
- Namespace
- Fluxzy.Rules.Filters.RequestFilters
- Assembly
- Fluxzy.Core.dll
[FilterMetaData(null, LongDescription = "Select exchange according to hostname and a port")]
public class AuthorityFilter : StringFilter
- Inheritance
-
AuthorityFilter
- Inherited Members
- Extension Methods
Constructors
AuthorityFilter(int, string, StringSelectorOperation)
[JsonConstructor]
public AuthorityFilter(int port, string pattern, StringSelectorOperation operation)
Parameters
portintpatternstringoperationStringSelectorOperation
Properties
AutoGeneratedName
public override string AutoGeneratedName { get; }
Property Value
Common
public override bool Common { get; set; }
Property Value
Description
public override string? Description { get; set; }
Property Value
FilterScope
The scope of this filter
public override FilterScope FilterScope { get; }
Property Value
GenericName
public override string GenericName { get; }
Property Value
Port
public int Port { get; }
Property Value
ShortName
public override string? ShortName { get; }
Property Value
Methods
GetExamples()
public override IEnumerable<FilterExample> GetExamples()
Returns
GetMatchInputs(ExchangeContext?, IAuthority, IExchange?)
protected override IEnumerable<string> GetMatchInputs(ExchangeContext? exchangeContext, IAuthority authority, IExchange? exchange)
Parameters
exchangeContextExchangeContextauthorityIAuthorityexchangeIExchange
Returns
InternalApply(ExchangeContext?, IAuthority, IExchange?, IFilteringContext?)
protected override bool InternalApply(ExchangeContext? exchangeContext, IAuthority authority, IExchange? exchange, IFilteringContext? filteringContext)
Parameters
exchangeContextExchangeContextauthorityIAuthorityexchangeIExchangefilteringContextIFilteringContext