Ejemplo n.º 1
0
 private static IEnumerable <Guid> GetChildrenByTypePredicate(DObject obj, IServerApiService repository, Predicate <INType> predicate)
 {
     return(obj.Children.Where(x => predicate(repository.GetType(x.TypeId))).Select(x => x.ObjectId));
 }
Ejemplo n.º 2
0
 public static IEnumerable <DChild> GetStorageChildren(this DObject obj, IServerApiService repository)
 {
     return(obj.Children.Where(x => MatchesPilotStorage(repository.GetType(x.TypeId))));
 }