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()); }
internal static IThrottlingPolicy GetDiscoveryThrottlingPolicy(IRecipientSession recipientSession) { DiscoveryTenantBudgetKey discoveryTenantBudgetKey = new DiscoveryTenantBudgetKey(recipientSession.SessionSettings.CurrentOrganizationId, BudgetType.PowerShell); return(discoveryTenantBudgetKey.Lookup()); }