internal DataStoreShard(DataStore owner, System.Net.HostEndPoint endPoint) { _owner = owner; _endPoint = endPoint; _subscribeListenerClient = Allocate(); _subscribeListenerThread = new Thread(ListenerLoop); _subscribeListenerThread.Start(); }
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(); } }