Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
HasOpenIntelligence.cs
1using System.Threading.Tasks;
2using System.Xml;
6
8{
13 {
18 : base()
19 {
20 }
21
29 : base(Xml, Parent, Document)
30 {
31 }
32
36 public override string LocalName => nameof(HasOpenIntelligence);
37
45 public override WafAction Create(XmlElement Xml, WafAction Parent, WebApplicationFirewall Document) => new HasOpenIntelligence(Xml, Parent, Document);
46
52 public override async Task<WafResult?> Review(ProcessingState State)
53 {
54 GenericObject[] Objects = await this.FindObjects(State);
55
56 if (Objects.Length > 0)
57 return await this.ReviewChildren(State);
58 else
59 return null;
60 }
61 }
62}
Generic object. Contains a sequence of properties.
Abstract base class for Web Application Firewall Open Intelligence actions.
async Task< GenericObject[]> FindObjects(ProcessingState State)
Finds any Open Intelligence records matching the parameters of the action.
Checks if an endpoint has an Open Intelligence record associated with it.
override string LocalName
XML Local Name for the XML element defining the action.
HasOpenIntelligence()
Checks if an endpoint has an Open Intelligence record associated with it.
override async Task< WafResult?> Review(ProcessingState State)
Reviews the processing state, and returns a WAF result, if any.
override WafAction Create(XmlElement Xml, WafAction Parent, WebApplicationFirewall Document)
Creates a WAF action from its XML definition.
HasOpenIntelligence(XmlElement Xml, WafAction Parent, WebApplicationFirewall Document)
Checks if an endpoint has an Open Intelligence record associated with it.
Contains the current state of a review process.
Abstract base class for Web Application Firewall actions.
Definition: WafAction.cs:17
WebApplicationFirewall Document
Web Application Firewall document.
Definition: WafAction.cs:60
async Task< WafResult?> ReviewChildren(ProcessingState State)
Reviews the processing state, and returns a WAF result, if any.
Definition: WafActions.cs:72
Web Application Firewall for HttpServer.