Class BeforeAfterFilterBase
Provides base for filters that have before/after semantics
Inheritance
System.Object
BeforeAfterFilterBase
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Azos.Wave.Filters
Assembly: Azos.Wave.dll
Syntax
public abstract class BeforeAfterFilterBase : WorkFilter, IDisposable, IApplicationComponent, INamed, IOrdered
Constructors
BeforeAfterFilterBase(WorkDispatcher, IConfigSectionNode)
Declaration
public BeforeAfterFilterBase(WorkDispatcher dispatcher, IConfigSectionNode confNode)
Parameters
Type | Name | Description |
---|---|---|
WorkDispatcher | dispatcher | |
IConfigSectionNode | confNode |
BeforeAfterFilterBase(WorkDispatcher, String, Int32)
Declaration
public BeforeAfterFilterBase(WorkDispatcher dispatcher, string name, int order)
Parameters
Type | Name | Description |
---|---|---|
WorkDispatcher | dispatcher | |
System.String | name | |
System.Int32 | order |
BeforeAfterFilterBase(WorkHandler, IConfigSectionNode)
Declaration
public BeforeAfterFilterBase(WorkHandler handler, IConfigSectionNode confNode)
Parameters
Type | Name | Description |
---|---|---|
WorkHandler | handler | |
IConfigSectionNode | confNode |
BeforeAfterFilterBase(WorkHandler, String, Int32)
Declaration
public BeforeAfterFilterBase(WorkHandler handler, string name, int order)
Parameters
Type | Name | Description |
---|---|---|
WorkHandler | handler | |
System.String | name | |
System.Int32 | order |
Fields
CONFIG_AFTER_SECTION
Declaration
public const string CONFIG_AFTER_SECTION = "after"
Field Value
Type | Description |
---|---|
System.String |
CONFIG_BEFORE_SECTION
Declaration
public const string CONFIG_BEFORE_SECTION = "before"
Field Value
Type | Description |
---|---|
System.String |
Properties
AfterMatches
Returns matches used by the handler to determine whether match should be made before the work processing
Declaration
public OrderedRegistry<WorkMatch> AfterMatches { get; }
Property Value
Type | Description |
---|---|
OrderedRegistry<WorkMatch> |
BeforeMatches
Returns matches used by the handler to determine whether match should be made before the work processing
Declaration
public OrderedRegistry<WorkMatch> BeforeMatches { get; }
Property Value
Type | Description |
---|---|
OrderedRegistry<WorkMatch> |
Methods
DoAfterWork(WorkContext, JSONDataMap)
Override to do the work when one of the AfterMatches was matched
Declaration
protected abstract void DoAfterWork(WorkContext work, JSONDataMap matched)
Parameters
Type | Name | Description |
---|---|---|
WorkContext | work | |
JSONDataMap | matched |
DoBeforeWork(WorkContext, JSONDataMap)
Override to do the work when one of the BeforeMatches was matched
Declaration
protected abstract void DoBeforeWork(WorkContext work, JSONDataMap matched)
Parameters
Type | Name | Description |
---|---|---|
WorkContext | work | |
JSONDataMap | matched |
DoFilterWork(WorkContext, IList<WorkFilter>, Int32)
Declaration
protected override sealed void DoFilterWork(WorkContext work, IList<WorkFilter> filters, int thisFilterIndex)
Parameters
Type | Name | Description |
---|---|---|
WorkContext | work | |
System.Collections.Generic.IList<WorkFilter> | filters | |
System.Int32 | thisFilterIndex |
Overrides
Implements
System.IDisposable