示例#1
0
 public Task <ResourceModel[]> GetResourceTree()
 {
     return(WcfClient.GetResourcesAsync(new ResourceQuery
     {
         ReferenceCondition = new ReferenceFilter
         {
             Name = "Parent",
             ValueConstraint = ReferenceValue.NullOrEmpty
         },
         ReferenceRecursion = true,
         IncludedReferences = new[]
         {
             new ReferenceFilter {
                 Name = "Children"
             }
         }
     }));
 }
示例#2
0
 public Task <ResourceModel[]> GetResources(ResourceQuery query)
 {
     return(WcfClient.GetResourcesAsync(query));
 }