Пример #1
0
        public virtual IThrottlingPolicy GetThrottlingPolicy(ISearchPolicy policy)
        {
            Recorder.Trace(2L, TraceType.InfoTrace, "SearchFactory.GetThrottlingPolicy");
            DiscoveryTenantBudgetKey discoveryTenantBudgetKey = new DiscoveryTenantBudgetKey(policy.RecipientSession.SessionSettings.CurrentOrganizationId, BudgetType.PowerShell);

            return(discoveryTenantBudgetKey.Lookup());
        }
Пример #2
0
        internal static IThrottlingPolicy GetDiscoveryThrottlingPolicy(IRecipientSession recipientSession)
        {
            DiscoveryTenantBudgetKey discoveryTenantBudgetKey = new DiscoveryTenantBudgetKey(recipientSession.SessionSettings.CurrentOrganizationId, BudgetType.PowerShell);

            return(discoveryTenantBudgetKey.Lookup());
        }