public int GetMaxAllowedSearchThreads(IRecipientSession recipientSession) { return((int)SearchUtils.GetDiscoveryMaxSearchQueueDepth(recipientSession)); }