Exemple #1
0
        public Node(string name, IEnumerable <string> nodes, int partitions = 32)
        {
            N     = 3;
            _name = name ?? GenerateNodeName();
            string[] combinedNodes = new List <string>(nodes)
            {
                _name
            }.ToArray();
            _ring = new PartitionedConsistentHash(combinedNodes, partitions);

            _remote = new RemoteNodeClient(this);
        }
Exemple #2
0
 internal void UseRemoteNodeClient(IRemoteNodeClient remote)
 {
     _remote = remote;
 }