using System.DirectoryServices; namespace DigitalData.Core.Contracts.Application { public interface IDirectorySearchService : IServiceBase { IServiceResult> FindAll(DirectoryEntry searchRoot, string filter, SearchScope searchScope = SearchScope.Subtree, int sizeLimit = 5000); IServiceResult> FindAllByUserCache(string username, string filter, SearchScope searchScope = SearchScope.Subtree, int sizeLimit = 5000); } }