/// <summary> /// constructor /// </summary> public RicartSyncAlgorithm(NodeInfo nodeInfo, IConnectionProxy proxy) { State = AccessState.Released; LocalId = nodeInfo.Id; Proxy = proxy; LocalNodeInfo = nodeInfo; _clock = new ExtendedLamportClock(LocalId); Client = new RicartSyncAlgorithmClient(this); Server = new RicartSyncAlgorithmServer(this); }