/// <summary></summary> public ADManager(LordDomains domain) { Cache = new ADCache(); Cache.ADUserExpiration = TimeSpan.MinValue; Domain = domain; ldapSearch.PageSize = int.MaxValue / 2; }
/// <summary> /// Initializes an object that can be used to perform lookups on user information. /// </summary> /// <param name="cache">ADCacheContainer is an abstract class, so you will need to use an implementation of it.</param> /// <param name="domain">The domain that you want to perform the query against.</param> public ADManager(ADCache cache, LordDomains domain) { Cache = cache; Domain = domain; ldapSearch.PageSize = int.MaxValue / 2; }