/// <summary> /// Performs a raw, unfiltered search at the SPI level, /// eliminating duplicates from the result set. /// </summary> /// <param name="search">The search SPI</param> /// <param name="oclass">The object class - passed through to /// connector so it may be null if the connecor /// allowing it to be null. (This is convenient for /// unit tests, but will not be the case in general)</param> /// <param name="filter">The filter to search on</param> /// <param name="options">The options - may be null - will /// be cast to an empty OperationOptions</param> /// <returns>The list of results.</returns> public static IList <ConnectorObject> SearchToList <T>(SearchOp <T> search, ObjectClass oclass, Filter filter, OperationOptions options) where T : class { ToListResultsHandler handler = new ToListResultsHandler(); Search(search, oclass, filter, handler.ResultsHandler, options); return(handler.Objects); }
public static IList <ConnectorObject> SearchToList(SearchApiOp search, ObjectClass oclass, Filter filter, OperationOptions options) { ToListResultsHandler handler = new ToListResultsHandler(); search.Search(oclass, filter, handler.ResultsHandler, options); return(handler.Objects); }