// Token: 0x060011C7 RID: 4551 RVA: 0x00049964 File Offset: 0x00047B64
 public void ReportServerFoundInAD(AmServerName serverName)
 {
     base.WriterLockedOperation(delegate
     {
         ServerHealthInfo orAddServerHealthInfo = this.GetOrAddServerHealthInfo(serverName);
         this.ReportTransition(orAddServerHealthInfo.ServerFoundInAD, true);
     });
 }
        // Token: 0x060011D3 RID: 4563 RVA: 0x0004A7DC File Offset: 0x000489DC
        private ServerHealthInfo AddNewServerHealthInfo(string serverFqdn)
        {
            AmServerName     amServerName     = new AmServerName(serverFqdn);
            ServerHealthInfo serverHealthInfo = new ServerHealthInfo(amServerName);

            this.m_serverInfos[amServerName] = serverHealthInfo;
            return(serverHealthInfo);
        }
        // Token: 0x060011D2 RID: 4562 RVA: 0x0004A798 File Offset: 0x00048998
        private ServerHealthInfo GetOrAddServerHealthInfo(AmServerName serverName)
        {
            ServerHealthInfo serverHealthInfo;

            if (!this.m_serverInfos.ContainsKey(serverName))
            {
                serverHealthInfo = new ServerHealthInfo(serverName);
                this.m_serverInfos[serverName] = serverHealthInfo;
            }
            else
            {
                serverHealthInfo = this.m_serverInfos[serverName];
            }
            return(serverHealthInfo);
        }
 // Token: 0x060011CF RID: 4559 RVA: 0x0004A708 File Offset: 0x00048908
 public void InitializeFromHealthInfoPersisted(HealthInfoPersisted hip)
 {
     if (hip == null)
     {
         DbCopyHealthInfoInternalTable.Tracer.TraceDebug((long)this.GetHashCode(), "InitializeFromHealthInfoPersisted() received <NULL> for 'hip'. Ignoring and starting a new health info table.");
         return;
     }
     base.WriterLockedOperation(delegate
     {
         this.CreateTimeUtc     = this.ParseIntoDateTime(hip.CreateTimeUtcStr);
         this.LastUpdateTimeUtc = this.ParseIntoDateTime(hip.LastUpdateTimeUtcStr);
         DbCopyHealthInfoInternalTable.Tracer.TraceDebug <string, string>((long)this.GetHashCode(), "InitializeHealthInfoFromXML: LastUpdateTimeUtc from XML file: {0}, CreateTimeUtc: {1}", DateTimeHelper.ToStringInvariantCulture(this.LastUpdateTimeUtc), DateTimeHelper.ToStringInvariantCulture(this.CreateTimeUtc));
         foreach (DbHealthInfoPersisted dbHealthInfoPersisted in hip.Databases)
         {
             DbHealthInfo dbHealthInfo = this.AddNewDbHealthInfo(dbHealthInfoPersisted.DbGuid, dbHealthInfoPersisted.DbName);
             dbHealthInfo.InitializeFromSerializable(dbHealthInfoPersisted);
         }
         foreach (ServerHealthInfoPersisted serverHealthInfoPersisted in hip.Servers)
         {
             ServerHealthInfo serverHealthInfo = this.AddNewServerHealthInfo(serverHealthInfoPersisted.ServerFqdn);
             serverHealthInfo.InitializeFromSerializable(serverHealthInfoPersisted);
         }
     });
 }
        // Token: 0x060011DA RID: 4570 RVA: 0x0004A960 File Offset: 0x00048B60
        private int CountOfDbsMatchingCriteria(ServerHealthInfo serverInfo, IEnumerable <IADDatabase> dbs, Func <DbHealthInfo, DbCopyHealthInfo, bool> matchPredicate)
        {
            AmServerName serverName = serverInfo.ServerName;

            return(dbs.Count((IADDatabase db) => this.DatabaseMatchPredicateWrapper(db, serverName, matchPredicate)));
        }