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; }
public bool HasConfigChanged(ParsedRoute newConfig, BackendInfo backendOrNull) { return(Priority != newConfig.Priority || BackendOrNull != backendOrNull || !MatcherSummary.Equals(newConfig.GetMatcherSummary())); }