Class NOPNetGate
Represents an implementation of INetGate that allows all traffic
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: NFX.IO.Net.Gate
Assembly: NFX.dll
Syntax
public class NOPNetGate : ApplicationComponent, INetGate, IApplicationComponent, IDisposable
Constructors
NOPNetGate()
Declaration
protected NOPNetGate()
Fields
Instance
Default instance of INetGate implementation that allows all traffic
Declaration
public static readonly NOPNetGate Instance
Field Value
Type | Description |
---|---|
NOPNetGate |
Properties
Enabled
Declaration
public bool Enabled { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
CheckTraffic(ITraffic)
Declaration
public GateAction CheckTraffic(ITraffic traffic)
Parameters
Type | Name | Description |
---|---|---|
ITraffic | traffic |
Returns
Type | Description |
---|---|
GateAction |
CheckTraffic(ITraffic, out Rule)
Declaration
public GateAction CheckTraffic(ITraffic traffic, out Rule rule)
Parameters
Type | Name | Description |
---|---|---|
ITraffic | traffic | |
Rule | rule |
Returns
Type | Description |
---|---|
GateAction |
IncreaseVariable(TrafficDirection, String, String, Int32)
Declaration
public 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)
Declaration
public 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 |
Implements
System.IDisposable