public Server(ElectionAuthority electionAuthority) { clientSockets = new Dictionary <TcpClient, string>(); this.encoder = new ASCIIEncoding(); this.parser = new Parser(electionAuthority); }
public Parser(ElectionAuthority electionAuthority) { this.electionAuthority = electionAuthority; }
public void loadConfig(string filename) { configuration.loadConfiguration(filename); electionAuthority = new ElectionAuthority(this.configuration, this); this.electionAuthority.loadCandidateList("C:\\Users\\mskwarek\\Documents\\Visual Studio 2015\\Projects\\PKRY\\Config\\CandidateList.xml"); }