コード例 #1
0
        // Token: 0x06000266 RID: 614 RVA: 0x0000C118 File Offset: 0x0000A318
        public OABCache.OABCacheEntry GetOABFromCacheOrAD(Guid exchangeObjectId, string userAcceptedDomain)
        {
            OABCache.OABCacheEntry oabcacheEntry = null;
            if (this.oabTimeoutCache.TryGetValue(exchangeObjectId, ref oabcacheEntry))
            {
                return(oabcacheEntry);
            }
            OfflineAddressBook offlineAddressBook = DirectoryHelper.GetConfigurationSessionFromExchangeGuidAndDomain(exchangeObjectId, userAcceptedDomain).FindByExchangeObjectId <OfflineAddressBook>(exchangeObjectId, "d:\\dbs\\sh\\e16df\\0212_214120_0\\cmd\\1g\\sources\\Dev\\Cafe\\src\\HttpProxy\\Cache\\OABCache.cs", 115, "GetOABFromCacheOrAD");

            if (offlineAddressBook == null)
            {
                throw new ADNoSuchObjectException(new LocalizedString(exchangeObjectId.ToString()));
            }
            oabcacheEntry = new OABCache.OABCacheEntry(offlineAddressBook);
            this.oabTimeoutCache.TryInsertAbsolute(exchangeObjectId, oabcacheEntry, OABCache.cacheTimeToLive.Value);
            return(oabcacheEntry);
        }