API Reference
FirewallPortExceptionsControl
Defines inbound port exceptions list (GloballyOpenPorts\List) for a given firewall profile. Evaluates as a list of entries (string tokens as stored in policy), compared with list semantics.
Inheritance
- Object
- FirewallPortExceptionsControl
Constructors
public FirewallPortExceptionsControl(String id, String title, FirewallProfileKind profile, CxComparator comparator) #Creates a control bound to port exceptions for the profile.
Parameters
- id System.String
- title System.String
- profile ComputerX.Firewall.FirewallProfileKind
- comparator ComputerX.Controls.CxComparator
Methods
public virtual CxEval Evaluate(String host, CxFacts facts) #CxEvalEvaluates current vs desired port exceptions.
Parameters
- host System.String
- facts ComputerX.Controls.CxFacts
public virtual Boolean IsApplicable(CxFacts facts) #BooleanTrue when the control applies to the provided facts.
Parameters
- facts ComputerX.Controls.CxFacts
public virtual Object ReadCurrent(String host, CxFacts facts) #ObjectReads current GloballyOpenPorts list for the profile.
Parameters
- host System.String
- facts ComputerX.Controls.CxFacts
public virtual Boolean TryWrite(String host, Object value, out String error) #BooleanWrites the port exception list back to policy for the profile.
Parameters
- host System.String
- value System.Object
- error System.String@
public FirewallPortExceptionsControl WhereIs(CxCondition c) #FirewallPortExceptionsControlSets an applicability condition.
Parameters
- c ComputerX.Controls.CxCondition
public FirewallPortExceptionsControl WithDesired(CxVendor vendor, IEnumerable<String> entries, String ruleId = null, String note = null, String description = null, String referenceUrl = null, String severity = null, String category = null, String[] tags = null) #FirewallPortExceptionsControlAdds desired entries for a vendor.
Parameters
- vendor ComputerX.Controls.CxVendor
- entries System.Collections.Generic.IEnumerable{System.String}
- ruleId System.String = null
- note System.String = null
- description System.String = null
- referenceUrl System.String = null
- severity System.String = null
- category System.String = null
- tags System.String[] = null
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
public virtual String Id { get; } #Unique identifier for the control.
public virtual String Title { get; } #Display title for the control.
public virtual CxValueKind ValueKind { get; } #Value kind (string list of port exception tokens).
public virtual CxComparator Comparator { get; } #Comparator used for evaluation.
public FirewallProfileKind Profile { get; } #Firewall profile (Domain/Private/Public).
public CxCondition Where { get; set; } #Optional applicability condition.
public virtual IReadOnlyList<CxDesired> Desired { get; } #Desired entries per vendor.