Пример #1
0
 public NpTests()
 {
     _tester = new NetTester();
     _nphost = new NpHost(PipeName);
     _nphost.AddService <INetTester>(_tester);
     _nphost.Open();
 }
Пример #2
0
        public TcpZkTests()
        {
            _tester    = new NetTester();
            _ipAddress = IPAddress.Parse("127.0.0.1");

            _tcphost = new TcpHost(CreateEndPoint(), zkRepository: _repo);
            _tcphost.AddService <INetTester>(_tester);
            _tcphost.Open();
        }