Example #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;
            Endpoints      = aspNetCoreEndpoints;
        }
Example #2
0
        public RouteConfig(
            RouteInfo route,
            int configHash,
            int?priority,
            BackendInfo backendOrNull,
            IReadOnlyList <AspNetCore.Http.Endpoint> aspNetCoreEndpoints,
            Transforms transforms)
        {
            Contracts.CheckValue(route, nameof(route));
            Contracts.CheckValue(aspNetCoreEndpoints, nameof(aspNetCoreEndpoints));

            Route         = route;
            ConfigHash    = configHash;
            Priority      = priority;
            BackendOrNull = backendOrNull;
            Endpoints     = aspNetCoreEndpoints;
            Transforms    = transforms;
        }
Example #3
0
 public bool HasConfigChanged(ParsedRoute newConfig, BackendInfo backendOrNull)
 {
     return(BackendOrNull != backendOrNull ||
            !ConfigHash.Equals(newConfig.GetConfigHash()));
 }
Example #4
0
 public bool HasConfigChanged(ParsedRoute newConfig, BackendInfo backendOrNull)
 {
     return(Priority != newConfig.Priority ||
            BackendOrNull != backendOrNull ||
            !MatcherSummary.Equals(newConfig.GetMatcherSummary()));
 }