Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
AddOpenIntelligence.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(AddOpenIntelligence);
37
45 public override WafAction Create(XmlElement Xml, WafAction Parent, WebApplicationFirewall Document) => new AddOpenIntelligence(Xml, Parent, Document);
46
52 public override async Task<WafResult?> Review(ProcessingState State)
53 {
54 GenericObject Obj = await this.EvaluateObject(State);
55
56 await Database.Insert(Obj);
57
58 return null;
59 }
60 }
61}
Static interface for database persistence. In order to work, a database provider has to be assigned t...
Definition: Database.cs:21
static async Task Insert(object Object)
Inserts an object into the default collection of the database.
Definition: Database.cs:97
Generic object. Contains a sequence of properties.
Adds a record to the Open Intelligence database
override string LocalName
XML Local Name for the XML element defining the action.
AddOpenIntelligence()
Adds a record to the Open Intelligence database
AddOpenIntelligence(XmlElement Xml, WafAction Parent, WebApplicationFirewall Document)
Adds a record to the Open Intelligence database
override WafAction Create(XmlElement Xml, WafAction Parent, WebApplicationFirewall Document)
Creates a WAF action from its XML definition.
override async Task< WafResult?> Review(ProcessingState State)
Reviews the processing state, and returns a WAF result, if any.
Abstract base class for Web Application Firewall Open Intelligence actions.
async Task< GenericObject > EvaluateObject(ProcessingState State)
Evaluates an object reference from the attributes of the action.
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
Web Application Firewall for HttpServer.