Example #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));
 }
Example #2
0
 public static IEnumerable <DChild> GetStorageChildren(this DObject obj, IServerApiService repository)
 {
     return(obj.Children.Where(x => MatchesPilotStorage(repository.GetType(x.TypeId))));
 }