RPCBase.Server.ZkAdaptor.IsLeader C# (CSharp) Method

IsLeader() public method

public IsLeader ( string roundName ) : bool
roundName string
return bool
        public bool IsLeader(string roundName)
        {
            Election election = null;
            if (!electionDict.TryGetValue(roundName, out election))
            {
                throw new Exception("no round:"+roundName);
            }

            return election.IsLeader;
        }