public static AliasInfo GetClosestParentAlias(string virtualPath, AliasMap aliasMap, bool considerCurrentPath) { var aliases = aliasMap.GetAliases(); var path = considerCurrentPath ? virtualPath : RemoveOneSubdirectoryFromPath(virtualPath); AliasInfo aliasInfo = null; while (path.Length > 0) { aliasInfo = aliases.Where(x => x.Path == path).SingleOrDefault(); if (aliasInfo != null) { break; } path = RemoveOneSubdirectoryFromPath(path); } return(aliasInfo); }
public ElasticQueryParserConfiguration UseAliases(AliasMap defaultAliasMap, int priority = 50) { return(UseAliases(defaultAliasMap.Resolve, priority)); }
public AliasedExpressionQueryBuilder(AliasMap aliasMap) { _aliasMap = aliasMap; }
public AliasRoute(IAliasHolder aliasHolder, string areaName, IRouteHandler routeHandler) { Area = areaName; _aliasMap = aliasHolder.GetMap(areaName); _routeHandler = routeHandler; }
public AliasedSearchQueryBuilder(AliasMap aliasMap) { _aliasMap = aliasMap; }
public void UseAliases(AliasMap aliasMap) { Unregister <ExpressionQueryBuilder>(); Register(new AliasedExpressionQueryBuilder(aliasMap)); }
public AliasRoute(IAliasHolder aliasHolder, string areaName, IRouteHandler routeHandler) { Area = areaName; _aliasMap = aliasHolder.GetMap(areaName); _routeHandler = routeHandler; }
public void UseAliases(AliasMap aliasMap) { Unregister <SearchQueryBuilder>(); Register(new AliasedSearchQueryBuilder(aliasMap)); }
public HomeRoute(IAliasHolder aliasHolder, IWorkContextAccessor workContextAccessor) { _workContextAccessor = workContextAccessor; _aliasMap = aliasHolder.GetMap(AreaName); }