示例#1
0
 private FwOutRule(FwRuleText text)
     : this()
 {
     Text = text;
 }
示例#2
0
 public FwOutRule(FwRuleText text, uint ip, uint mask)
     : this(text, string.Format("{0}/{1}", GetIPStr(ip), GetIPStr(mask)))
 {
 }
示例#3
0
 public FwOutRule(FwRuleText text, string ipStr, string mask)
     : this(text, string.Format("{0}/{1}", ipStr, mask))
 {
 }
示例#4
0
 public FwOutRule(FwRuleText text, string remoteAddresses)
     : this(text)
 {
     UpdateRemoteAddresses(remoteAddresses.Split(',')[0]);
 }
示例#5
0
 public FwOutRule(FwRuleText text, IPAddress addr)
     : this(text, (uint)addr.Address, _fullIPMask)
 {
 }
示例#6
-5
        public FwOutRule(INetFwRule fwRule)
            : this(FwRuleText.Empty)
        {
            ApplicationName = fwRule.ApplicationName;
            Name = fwRule.Name;
            Description = fwRule.Description;

            _remoteAddresses = fwRule.RemoteAddresses.Split(',')[0];

            SetMaskFromRemoteAddresses();

            Text = new FwRuleText(IPStr);
        }