private static void InitializePartnerIdMap() { MServDirectorySession.partnerIdToForestMap = new Dictionary <int, string>(); MServDirectorySession.partnerIdToForestMap.Add(51003, "APCPRD01.prod.exchangelabs.com"); MServDirectorySession.partnerIdToForestMap.Add(51012, "APCPRD02.prod.outlook.com"); MServDirectorySession.partnerIdToForestMap.Add(51021, "APCPRD03.prod.outlook.com"); MServDirectorySession.partnerIdToForestMap.Add(51022, "APCPRD04.prod.outlook.com"); MServDirectorySession.partnerIdToForestMap.Add(51023, "APCPRD05.prod.outlook.com"); MServDirectorySession.partnerIdToForestMap.Add(51024, "APCPRD06.prod.outlook.com"); MServDirectorySession.partnerIdToForestMap.Add(51025, "APCPRD07.prod.outlook.com"); MServDirectorySession.partnerIdToForestMap.Add(51026, "APCPRD08.prod.outlook.com"); MServDirectorySession.partnerIdToForestMap.Add(51002, "EURPRD01.prod.exchangelabs.com"); MServDirectorySession.partnerIdToForestMap.Add(51007, "EURPRD02.prod.outlook.com"); MServDirectorySession.partnerIdToForestMap.Add(51013, "EURPRD03.prod.outlook.com"); MServDirectorySession.partnerIdToForestMap.Add(51014, "EURPRD04.prod.outlook.com"); MServDirectorySession.partnerIdToForestMap.Add(51015, "EURPRD05.prod.outlook.com"); MServDirectorySession.partnerIdToForestMap.Add(51016, "EURPRD06.prod.outlook.com"); MServDirectorySession.partnerIdToForestMap.Add(51017, "EURPRD07.prod.outlook.com"); MServDirectorySession.partnerIdToForestMap.Add(51000, "PROD.exchangelabs.com"); MServDirectorySession.partnerIdToForestMap.Add(51004, "NAMPRD02.prod.outlook.com"); MServDirectorySession.partnerIdToForestMap.Add(51008, "NAMPRD03.prod.outlook.com"); MServDirectorySession.partnerIdToForestMap.Add(51009, "NAMPRD04.prod.outlook.com"); MServDirectorySession.partnerIdToForestMap.Add(51010, "NAMPRD05.prod.outlook.com"); MServDirectorySession.partnerIdToForestMap.Add(51011, "NAMPRD06.prod.outlook.com"); MServDirectorySession.partnerIdToForestMap.Add(51018, "NAMPRD07.prod.outlook.com"); MServDirectorySession.partnerIdToForestMap.Add(51019, "NAMPRD08.prod.outlook.com"); MServDirectorySession.partnerIdToForestMap.Add(51020, "NAMPRD09.prod.outlook.com"); MServDirectorySession.partnerIdToForestMap.Add(51028, "LAMPRD80.prod.outlook.com"); MServDirectorySession.partnerIdToForestMap.Add(51005, "NAMSDF01.sdf.exchangelabs.com"); string[] multiStringValueFromRegistry = Globals.GetMultiStringValueFromRegistry("PartnerIdToForestMappings", 0); foreach (string text in multiStringValueFromRegistry) { string[] array2 = text.Split(new char[] { ':' }); int num = -1; SmtpDomain smtpDomain; if (array2.Length != 2 || !int.TryParse(array2[0], out num) || !SmtpDomain.TryParse(array2[1], out smtpDomain)) { ExTraceGlobals.MServTracer.TraceError <string>(0L, "Could not parse PartnerId registry override {0}", text); } else { ExTraceGlobals.MServTracer.TraceDebug <int, string>(0L, "Adding registry override: {0} -> {1}", num, array2[1]); MServDirectorySession.partnerIdToForestMap[num] = array2[1]; } } }