internal static DataApplicationState Get( string id, string centralServerAddress) { centralServerAddress = CentralServerClient.GetHost(centralServerAddress) + (object)':' + (object)CentralServerClient.GetPort(centralServerAddress); lock (DataApplicationState.FCacheSync) { for (int index = 0; index < DataApplicationState.FCache.Count; ++index) { DataApplicationState applicationState = DataApplicationState.FCache[index]; if (DataApplicationState.Same(id, applicationState.FId) && DataApplicationState.Same(centralServerAddress, applicationState.FCentralServerAddress)) { if (!applicationState.IsMetadataChanged()) { return(applicationState); } DataApplicationState.FCache.RemoveAt(index); break; } } DataApplicationState applicationState1 = new DataApplicationState(id, centralServerAddress); applicationState1.FSyncVersion = Utility.GetSyncVersion(applicationState1.MetadataSyncFile); DataApplicationState.FCache.Add(applicationState1); return(applicationState1); } }
private XmlDocument QueryThisCentralServer( string requestFmt, params object[] paramArray) { return(CentralServerClient.QuerySpecified(this.FCentralServerAddress, requestFmt, paramArray)); }