2using System.Threading.Tasks;
39 foreach (XmlNode N
in Xml.ChildNodes)
41 if (N is XmlElement E)
45 this.actions =
Actions.ToArray();
56 public bool IsEmpty => this.actions.Length == 0;
63 foreach (
WafAction Action
in this.actions)
74 foreach (
WafAction Action
in this.actions)
76 WafResult? Result = await Action.Review(State);
A chunked list is a linked list of chunks of objects of type T .
Contains the current state of a review process.
Abstract base class for Web Application Firewall actions.
static WafAction Parse(XmlElement Xml, WafAction Parent, WebApplicationFirewall Document)
Parses an XML Element defining a WAF action.
WebApplicationFirewall Document
Web Application Firewall document.
Abstract base class for Web Application Firewall actions containing other child actions.
WafAction[] Actions
Child actions.
async Task< WafResult?> ReviewChildren(ProcessingState State)
Reviews the processing state, and returns a WAF result, if any.
WafActions()
Abstract base class for Web Application Firewall actions containing other child actions.
WafActions(XmlElement Xml, WafAction Parent, WebApplicationFirewall Document)
Abstract base class for Web Application Firewall actions containing other child actions.
bool IsEmpty
If the action contains no child actions.
override void Prepare()
Prepares the node for processing.
Web Application Firewall for HttpServer.
WafResult
Actions that a Web Server can take after reviewing a request.