Exemplo n.º 1
0
 public IEnumerable <IRelationById> GetAncestorRelations(HiveId descendentId, RelationType relationType)
 {
     return(UnitScopedCache.GetOrCreateTyped(
                "erg_GetAncestorRelations" + descendentId + (relationType != null ? relationType.RelationName : "any_relationtype"),
                () => ChildSessions.GetAncestorRelations(descendentId, IdRoot, relationType)));
 }
Exemplo n.º 2
0
 public IEnumerable <IRelationById> GetParentRelations(HiveId childId, RelationType relationType)
 {
     return(UnitScopedCache.GetOrCreateTyped(
                "erg_GetParentRelations" + childId + (relationType != null ? relationType.RelationName : "any_relationtype"),
                () => ChildSessions.GetParentRelations(childId, IdRoot, relationType)));
 }