public VRClient() { readAndSetHosts(); readAndSetParameters(); primary = replicaList[0]; viewNumber = 1; requestNumber = 0; Console.WriteLine(identify()); messageProcessor = new MessageProcessor(); proxy = new VRProxy(primary.address, messageProcessor); commandProcessor = new CommandProcessor(this, proxy); proxy.commandProcessor = commandProcessor; messageProcessor.commandProcessor = commandProcessor; commandProcessor.startProcessing(); }
public CommandProcessor(VRClient client, VRProxy proxy) { this.client = client; this.proxy = proxy; isRunning = true; }