public static ContainsExclusion ( this |
||
routeMatches | this |
|
absolutePath | string | The absolute path. |
return | bool |
public static bool ContainsExclusion(this IEnumerable<RouteMatchElement> routeMatches, string absolutePath)
{
return routeMatches.Cast<RouteMatchElement>().Any(element => element.Type == RouteMatchTypes.Exclude && element.IsMatch(absolutePath));
}
}