示例#1
0
 public Node(NodeIdentifier id, NodePosition position, NodeQueue queue, NodePortSet ports)
 {
     Id       = id ?? throw new ArgumentNullException(nameof(id));
     Position = position ?? throw new ArgumentNullException(nameof(position));
     Queue    = queue ?? throw new ArgumentNullException(nameof(queue));
     Ports    = ports ?? throw new ArgumentNullException(nameof(ports));
 }
示例#2
0
 public Router(NodeIdentifier id, NodePosition position, NodeQueue queue, NodePortSet ports, RouterState state) : base(id, position, queue, ports)
 {
     State = state ?? throw new ArgumentNullException(nameof(state));
 }
示例#3
0
 public Gateway(NodeIdentifier id, NodePosition position, NodeQueue queue, NodePortSet ports) : base(id, position, queue, ports)
 {
 }
示例#4
0
 public Consumer(NodeIdentifier id, NodePosition position, NodeQueue queue, NodePortSet ports) : base(id, position, queue, ports)
 {
 }