/// <see cref="ICatalogNode.QueryChildrenAsync"/> public Task <IEnumerable <ICatalogNode> > QueryChildrenAsync(IEnumerable <Guid> resourceTypeFilters, bool recurse, CatalogQueryOptions queryOptions) { return(Task.Factory.StartNew <IEnumerable <ICatalogNode> >(() => _node.QueryChildren(resourceTypeFilters, recurse, queryOptions) .Select(n => new CatalogNodeAdapter(n, _scheduler)) .ToList(), CancellationToken.None, TaskCreationOptions.None, _scheduler)); }
/// <see cref="ICatalogNode.QueryChildren"/> public IEnumerable<ICatalogNode> QueryChildren(IEnumerable<Guid> resourceTypeFilters, bool recurse, CatalogQueryOptions queryOptions) { return _node.QueryChildren(resourceTypeFilters, recurse, queryOptions) .Select(n => new CatalogNodeWrapper(n)).ToList(); }
/// <see cref="ICatalogNode.QueryChildren"/> public IEnumerable <ICatalogNode> QueryChildren(IEnumerable <Guid> resourceTypeFilters, bool recurse, CatalogQueryOptions queryOptions) { return(_node.QueryChildren(resourceTypeFilters, recurse, queryOptions) .Select(n => new CatalogNodeWrapper(n)).ToList()); }
/// <summary> /// Gets the wrapper. /// </summary> /// <param name="src">The source.</param> /// <returns>ICatalogQueryOptions.</returns> public static ICatalogQueryOptions GetWrapper(CatalogQueryOptions src) { return(default(ICatalogQueryOptions)); }