コード例 #1
0
 /// <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));
 }
コード例 #2
0
 /// <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();
 }
コード例 #3
0
 /// <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());
 }
コード例 #4
0
 /// <summary>
 /// Gets the wrapper.
 /// </summary>
 /// <param name="src">The source.</param>
 /// <returns>ICatalogQueryOptions.</returns>
 public static ICatalogQueryOptions GetWrapper(CatalogQueryOptions src)
 {
     return(default(ICatalogQueryOptions));
 }