Example #1
0
        public void SetClusterNodeState(string clusterNodeKey, ClusterNodeState state, TimeSpan stateLifetime)
        {
            ClusterNodeInfo nodeInfo = _appServerNodes[clusterNodeKey];

            nodeInfo.SetState(state, stateLifetime);
        }
Example #2
0
        public void SetClusterNodeState(byte cnid, ClusterNodeState state, TimeSpan stateLifetime)
        {
            ClusterNodeInfo nodeInfo = _appServerNodeMap[cnid % _appServerNodeMap.Length];

            nodeInfo.SetState(state, stateLifetime);
        }