static Globals() { using (Process currentProcess = Process.GetCurrentProcess()) { Globals.processName = currentProcess.MainModule.ModuleName; Globals.processId = currentProcess.Id; Globals.processProcessName = currentProcess.ProcessName; Globals.isExchangeTestExecutable = Globals.CheckExchangeTestExecutables(Globals.processProcessName); } Globals.SetProcessNameAppName(); Globals.logger = new ExEventLog(Microsoft.Exchange.Diagnostics.Components.Data.Directory.ExTraceGlobals.TopologyProviderTracer.Category, "MSExchange ADAccess"); Globals.logger.SetEventPeriod(Globals.GetIntValueFromRegistry("LogPeriod", 900, 0)); Globals.isDatacenterFlag = Datacenter.IsMultiTenancyEnabled(); Globals.isMicrosoftHostedOnly = Datacenter.IsMicrosoftHostedOnly(true); Globals.testPassTypeValue = Globals.GetValueFromRegistry <string>("SOFTWARE\\Microsoft\\Exchange_Test\\v15", "TestPassType", string.Empty, Microsoft.Exchange.Diagnostics.Components.Data.Directory.ExTraceGlobals.ADTopologyTracer); Globals.forceLdapLatency = (Globals.GetValueFromRegistry <int>("SOFTWARE\\Microsoft\\Exchange_Test\\v15", "ForceLdapLatency", 0, Microsoft.Exchange.Diagnostics.Components.Data.Directory.ExTraceGlobals.ADTopologyTracer) > 0); Globals.TenantInfoCacheTime = Globals.GetValueFromRegistry <int>("SYSTEM\\CurrentControlSet\\Services\\MSExchange ADAccess", "TenantInfoCacheTime", 1800, Microsoft.Exchange.Diagnostics.Components.Data.Directory.ExTraceGlobals.ADTopologyTracer); Globals.RecipientInfoCacheTime = Globals.GetValueFromRegistry <int>("SYSTEM\\CurrentControlSet\\Services\\MSExchange ADAccess", "RecipientInfoCacheTime", 300, Microsoft.Exchange.Diagnostics.Components.Data.Directory.ExTraceGlobals.ADTopologyTracer); Globals.RecipientTokenGroupsCacheTime = Globals.GetValueFromRegistry <int>("SYSTEM\\CurrentControlSet\\Services\\MSExchange ADAccess", "RecipientTokenGroupsCacheTime", 900, Microsoft.Exchange.Diagnostics.Components.Data.Directory.ExTraceGlobals.ADTopologyTracer); Globals.EnableNotification = (Globals.GetValueFromRegistry <int>("SYSTEM\\CurrentControlSet\\Services\\MSExchange ADAccess", "EnableNotification", 1, Microsoft.Exchange.Diagnostics.Components.Data.Directory.ExTraceGlobals.ADTopologyTracer) == 0); Globals.LdapConnectionPoolSize = Globals.GetValueFromRegistry <int>("SYSTEM\\CurrentControlSet\\Services\\MSExchange ADAccess", "LdapConnectionPoolSize", 5, Microsoft.Exchange.Diagnostics.Components.Data.Directory.ExTraceGlobals.ADTopologyTracer); }
// Token: 0x06000337 RID: 823 RVA: 0x00011E0C File Offset: 0x0001000C private static bool UpdateCrossRFLookupCheckEnabled() { int intValueFromRegistry = Globals.GetIntValueFromRegistry("SYSTEM\\CurrentControlSet\\Services\\MSExchange ADAccess", "CrossRFLookupCheckEnabled", 0, 0); return(intValueFromRegistry != 0); }
private void LoadConfiguration() { this.isLockdownOnly = (Globals.GetIntValueFromRegistry(UserExperienceMonitoringConfiguration.RegistryPath, UserExperienceMonitoringConfiguration.UserExperienceMonitoringLockdownOnlyRegistryName, 0, 0) > 0); }
internal static int GetIntValueFromRegistry(string valueName, int defaultValue, int tracingKey) { return(Globals.GetIntValueFromRegistry("SYSTEM\\CurrentControlSet\\Services\\MSExchange ADAccess", valueName, defaultValue, tracingKey)); }
private static bool ReadIgnoreRelocationTimeConstraintsValue() { int intValueFromRegistry = Globals.GetIntValueFromRegistry("SOFTWARE\\Microsoft\\ExchangeLabs", "TenantRelocationIgnoreTimeConstraints", 0, TenantRelocationStateCache.GetInstance().GetHashCode()); return(intValueFromRegistry > 0); }