Interface INetGate
Stipulates general contract for nrtwork gates - entities similar to firewall.
Network gates allow/deny in/out traffic based on a set of rules
Assembly: Azos.dll
Syntax
public interface INetGate : IApplicationComponent
Properties
Enabled
When gate is not enabled it allows all traffic bypassing any rules
Declaration
Property Value
Type |
Description |
System.Boolean |
|
Methods
CheckTraffic(ITraffic)
Checks whether the specified traffic is allowed or denied
Declaration
GateAction CheckTraffic(ITraffic traffic)
Parameters
Returns
CheckTraffic(ITraffic, out Rule)
Checks whether the specified traffic is allowed or denied.
Returns the rule that determined the allow/deny outcome or null when no rule matched
Declaration
GateAction CheckTraffic(ITraffic traffic, out Rule rule)
Parameters
Returns
IncreaseVariable(TrafficDirection, String, String, Int32)
Increases the named variable in the network scope which this specified traffic falls under
Declaration
void IncreaseVariable(TrafficDirection direction, string address, string varName, int value)
Parameters
Type |
Name |
Description |
TrafficDirection |
direction |
|
System.String |
address |
|
System.String |
varName |
|
System.Int32 |
value |
|
SetVariable(TrafficDirection, String, String, Int32)
Sets the named variable in the network scope which this specified traffic falls under
Declaration
void SetVariable(TrafficDirection direction, string address, string varName, int value)
Parameters
Type |
Name |
Description |
TrafficDirection |
direction |
|
System.String |
address |
|
System.String |
varName |
|
System.Int32 |
value |
|
Extension Methods