public TestListenerForPeer(TestSocket testSocket, INodeSink nodeSink, IExternalAccessDiscoverer discoverer, CancellationTokenSource source, ILogger logger) : base(nodeSink, discoverer, source, logger)
     => _testSocket = new SingleUseSocket(testSocket, _source);
예제 #2
0
 public Task <ExternalAccess> DetermineExternalAccessAsync(INodeSink nodeSink)
 => DetermineExternalAccessAsync(nodeSink.HostAtAddress, nodeSink.HostAtPortNumber, nodeSink.PublishAtAddress, nodeSink.PublishAtPortNumber);
 public ListenerForPeer(INodeSink nodeSink, IExternalAccessDiscoverer discoverer, CancellationTokenSource source, ILogger logger)
     : base(nodeSink.NodeId, nodeSink, source, logger)
     => (_nodeSink, _socket, _route) = DetermineExternalAccess(nodeSink.Required(nameof(nodeSink)), discoverer.Required(nameof(discoverer)));