public virtual IThrottlingPolicy Get(OrgAndObjectId orgAndObjectId)
 {
     this.BeforeGet();
     return(this.throttlingPolicies.GetValue(null, orgAndObjectId).ThrottlingPolicy);
 }
        private static CachableThrottlingPolicyItem ResolveThrottlingPolicy(object obj, OrgAndObjectId orgAndObjectId)
        {
            ThrottlingPolicy throttlingPolicy = null;

            if (orgAndObjectId.Id.IsDeleted)
            {
                Globals.LogEvent(DirectoryEventLogConstants.Tuple_DeletedThrottlingPolicyReferenced, orgAndObjectId.ToString(), new object[]
                {
                    orgAndObjectId
                });
            }
            else
            {
                throttlingPolicy = ThrottlingPolicyCache.ReadThrottlingPolicyFromAD(ThrottlingPolicyCache.GetSession(orgAndObjectId.OrganizationId), orgAndObjectId.Id, (IConfigurationSession session1, object id) => session1.Read <ThrottlingPolicy>((ADObjectId)id));
            }
            return(new CachableThrottlingPolicyItem((throttlingPolicy == null) ? ThrottlingPolicyCache.Singleton.Get(orgAndObjectId.OrganizationId) : throttlingPolicy.GetEffectiveThrottlingPolicy(true)));
        }