Esempio n. 1
0
        // Token: 0x06000F1C RID: 3868 RVA: 0x0003D128 File Offset: 0x0003B328
        public static PeopleConnectRegistryReader Read()
        {
            PeopleConnectRegistryReader result;

            try
            {
                using (RegistryKey registryKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\ExchangeServer\\v15\\PeopleConnect"))
                {
                    if (registryKey == null)
                    {
                        result = new PeopleConnectRegistryReader();
                    }
                    else
                    {
                        result = new PeopleConnectRegistryReader
                        {
                            DogfoodInEnterprise = Convert.ToBoolean((int)registryKey.GetValue("DogfoodInEnterprise", 0))
                        };
                    }
                }
            }
            catch (SecurityException e)
            {
                result = PeopleConnectRegistryReader.TraceErrorAndReturnEmptyConfiguration(e);
            }
            catch (IOException e2)
            {
                result = PeopleConnectRegistryReader.TraceErrorAndReturnEmptyConfiguration(e2);
            }
            catch (UnauthorizedAccessException e3)
            {
                result = PeopleConnectRegistryReader.TraceErrorAndReturnEmptyConfiguration(e3);
            }
            return(result);
        }
 public static IExchangeGroupKey Create()
 {
     if (PeopleConnectRegistryReader.Read().DogfoodInEnterprise)
     {
         return(new NullExchangeGroupKey());
     }
     return(new ExchangeGroupKey(null, "Microsoft Exchange DKM"));
 }
Esempio n. 3
0
        private IPeopleConnectApplicationConfig RetrieveCachedFacebookADConfig()
        {
            if (PeopleConnectRegistryReader.Read().DogfoodInEnterprise)
            {
                return(new CachedPeopleConnectApplicationConfig.PeopleConnectApplicationConfig());
            }
            IPeopleConnectApplicationConfig peopleConnectApplicationConfig;

            if (this.appADConfigCache.TryGetValue("facebook", out peopleConnectApplicationConfig))
            {
                return(peopleConnectApplicationConfig);
            }
            peopleConnectApplicationConfig = this.ReadFacebookConfigFromAD();
            this.ValidateFacebookConfig(peopleConnectApplicationConfig);
            this.appADConfigCache.Add("facebook", peopleConnectApplicationConfig);
            return(peopleConnectApplicationConfig);
        }