Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Allow.cs
1using System.Threading.Tasks;
2using System.Xml;
4
6{
10 public class Allow : WafAction
11 {
15 public Allow()
16 : base()
17 {
18 }
19
26 public Allow(XmlElement Xml, WafAction Parent, WebApplicationFirewall Document)
27 : base(Xml, Parent, Document)
28 {
29 }
30
34 public override string LocalName => nameof(Allow);
35
43 public override WafAction Create(XmlElement Xml, WafAction Parent, WebApplicationFirewall Document) => new Allow(Xml, Parent, Document);
44
50 public override Task<WafResult?> Review(ProcessingState State)
51 {
52 return Task.FromResult<WafResult?>(WafResult.Allow);
53 }
54 }
55}
Contains the current state of a review process.
Allows the request to proceed.
Definition: Allow.cs:11
override Task< WafResult?> Review(ProcessingState State)
Reviews the processing state, and returns a WAF result, if any.
Definition: Allow.cs:50
Allow(XmlElement Xml, WafAction Parent, WebApplicationFirewall Document)
Allows the request to proceed.
Definition: Allow.cs:26
Allow()
Allows the request to proceed.
Definition: Allow.cs:15
override string LocalName
XML Local Name for the XML element defining the action.
Definition: Allow.cs:34
override WafAction Create(XmlElement Xml, WafAction Parent, WebApplicationFirewall Document)
Creates a WAF action from its XML definition.
Abstract base class for Web Application Firewall actions.
Definition: WafAction.cs:17
WebApplicationFirewall Document
Web Application Firewall document.
Definition: WafAction.cs:60
Web Application Firewall for HttpServer.
WafResult
Actions that a Web Server can take after reviewing a request.