Esempio n. 1
0
 internal DataStoreShard(DataStore owner, System.Net.HostEndPoint endPoint)
 {
     _owner = owner;
     _endPoint = endPoint;
     _subscribeListenerClient = Allocate();
     _subscribeListenerThread = new Thread(ListenerLoop);
     _subscribeListenerThread.Start();
 }
Esempio n. 2
0
 RedisProtocolClient(System.Net.HostEndPoint endPoint, int millisecondsTimeout)
 {
     _endPoint = endPoint;
     _tcpClient = new TcpClient();
     if (_tcpClient.Connect(endPoint.Host, endPoint.Port, millisecondsTimeout))
     {
         _connected = true;
         _tcpClientStream = _tcpClient.GetStream();
         BeginRead();
     }
 }