Blockcore.Tests.Utilities.NodeTcpListenerStub.NodeTcpListenerStub C# (CSharp) Method

NodeTcpListenerStub() public method

public NodeTcpListenerStub ( IPEndPoint endpoint ) : System
endpoint IPEndPoint
return System
        public NodeTcpListenerStub(IPEndPoint endpoint)
        {
            Guard.NotNull(endpoint, nameof(endpoint));

            this.listener = new TcpListener(endpoint);
            this.listener.Start();
        }