public TimeSpan GetDefaultSearchTimeout(IRecipientSession recipientSession) { int discoverySearchTimeoutPeriod = (int)SearchUtils.GetDiscoverySearchTimeoutPeriod(recipientSession); if (discoverySearchTimeoutPeriod <= 0) { return(Factory.DefaultSearchTimeoutInterval); } return(TimeSpan.FromMinutes((double)discoverySearchTimeoutPeriod)); }