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
Inherited Members
      System.IDisposable.Dispose()
    
  Namespace: NFX.IO.Net.Gate
Assembly: NFX.dll
Syntax
public interface INetGate : IApplicationComponent, IDisposable
  Properties
Enabled
When gate is not enabled it allows all traffic bypassing any rules
Declaration
bool Enabled { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
Methods
CheckTraffic(ITraffic)
Checks whether the specified traffic is allowed or denied
Declaration
GateAction CheckTraffic(ITraffic traffic)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ITraffic | traffic | 
Returns
| Type | Description | 
|---|---|
| GateAction | 
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
| Type | Name | Description | 
|---|---|---|
| ITraffic | traffic | |
| Rule | rule | 
Returns
| Type | Description | 
|---|---|
| GateAction | 
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 |