1using System.Threading.Tasks;
67 long Delta = await this.delta.EvaluateAsync(
Variables, 0L);
68 long Count, Above, Below;
75 if (this.above.IsEmpty)
77 if (this.below.IsEmpty)
80 Below = await this.below.EvaluateAsync(
Variables, 0L);
87 Above = await this.above.EvaluateAsync(
Variables, 0L);
89 if (this.below.IsEmpty)
96 Below = await this.below.EvaluateAsync(
Variables, 0L);
100 if (Count > Above && Count < Below)
103 else if (Above > Below)
105 if (Count > Above || Count < Below)
Represents a case-insensitive string.
Static class managing persistent counters.
static Task< long > IncrementCounter(CaseInsensitiveString Key)
Increments a counter.
static async Task< long > GetCount(CaseInsensitiveString Key)
Gets the current count of a counter.
TestCounter(XmlElement Xml, WafAction Parent, WebApplicationFirewall Document)
Tests a named counter.
override async Task< WafResult?> Review(ProcessingState State)
Reviews the processing state, and returns a WAF result, if any.
TestCounter()
Tests a named counter.
override WafAction Create(XmlElement Xml, WafAction Parent, WebApplicationFirewall Document)
Creates a WAF action from its XML definition.
override string LocalName
XML Local Name for the XML element defining the action.
Contains the current state of a review process.
Variables Variables
Set of variables.
Abstract base class for Web Application Firewall actions.
WebApplicationFirewall Document
Web Application Firewall document.
Abstract base class for Web Application Firewall actions containing other child actions.
async Task< WafResult?> ReviewChildren(ProcessingState State)
Reviews the processing state, and returns a WAF result, if any.
Web Application Firewall for HttpServer.