示例#1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="label">Label of the node</param>
 /// <param name="guid">Guid of the node</param>
 /// <param name="dropUnknown">Whether to drop unknown packets</param>
 /// <param name="mode">The mode to determine the path to take</param>
 public SwitchNodeFactory(string label, Guid guid, bool dropUnknown, SwitchNodeSelectionMode mode)
     : base(label, guid)
 {
     DropUnknown = dropUnknown;
     Mode = mode;
 }
示例#2
0
 /// <summary>
 /// Constructor
 /// </summary>
 public SwitchNodeConfig()
 {
     _selectionPath = "/replace.me/";
     _mode = SwitchNodeSelectionMode.ExactMatch;
 }
示例#3
0
 /// <summary>
 /// Constructor
 /// </summary>        
 /// <param name="dropUnknown">Whether to drop unknown paths</param>
 /// <param name="mode">The selection mode</param>
 public SwitchNode(bool dropUnknown, SwitchNodeSelectionMode mode)
 {
     _dropUnknown = dropUnknown;
     _mode = mode;
     _regexs = new Dictionary<string, Regex>();
 }