Beispiel #1
0
        public RouteConfig(
            RouteInfo route,
            string matcherSummary,
            int?priority,
            BackendInfo backendOrNull,
            IReadOnlyList <AspNetCore.Http.Endpoint> aspNetCoreEndpoints)
        {
            Contracts.CheckValue(route, nameof(route));
            Contracts.CheckValue(aspNetCoreEndpoints, nameof(aspNetCoreEndpoints));

            Route               = route;
            MatcherSummary      = matcherSummary;
            Priority            = priority;
            BackendOrNull       = backendOrNull;
            AspNetCoreEndpoints = aspNetCoreEndpoints;
        }
Beispiel #2
0
 public bool HasConfigChanged(ParsedRoute newConfig, BackendInfo backendOrNull)
 {
     return(Priority != newConfig.Priority ||
            BackendOrNull != backendOrNull ||
            !MatcherSummary.Equals(newConfig.GetMatcherSummary()));
 }