public NodeServer(NodeInfo nodeInfo, IRoutingTable routingTable, INodeServerClientFactory clientFactory) { this.nodeInfo = nodeInfo ?? throw new ArgumentNullException(); this.routingTable = routingTable ?? throw new ArgumentNullException(); this.clientFactory = clientFactory ?? throw new ArgumentNullException(); this.localClient = clientFactory.CreateLocalClient(); }
public NodeServer(NodeInfo nodeInfo, IRoutingTable routingTable, INodeServerClientFactory clientFactory) { Throw.IfNull(nodeInfo, nameof(nodeInfo)); Throw.IfNull(routingTable, nameof(routingTable)); Throw.IfNull(clientFactory, nameof(clientFactory)); this.nodeInfo = nodeInfo; this.routingTable = routingTable; this.clientFactory = clientFactory; this.localClient = clientFactory.CreateLocalClient(); }