13 instantiations of RouteEndpoint
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (12)
Logging\HttpUtilityExtensionsTests.cs (2)
40var endpoint = new RouteEndpoint( 69var endpoint = new RouteEndpoint(
Logging\IncomingHttpRouteUtilityTests.cs (10)
44var endpoint = new RouteEndpoint( 82var endpoint = new RouteEndpoint( 122var endpoint = new RouteEndpoint( 164var endpoint = new RouteEndpoint( 206var endpoint = new RouteEndpoint( 253var endpoint = new RouteEndpoint( 294var endpoint = new RouteEndpoint( 342var endpoint = new RouteEndpoint( 387var endpoint = new RouteEndpoint( 425var endpoint = new RouteEndpoint(
Microsoft.AspNetCore.Routing (1)
RouteEndpointBuilder.cs (1)
55return new RouteEndpoint(
148 references to RouteEndpoint
Microsoft.AspNetCore.Components.Endpoints (1)
Rendering\EndpointHtmlRenderer.cs (1)
146if (httpContext.GetEndpoint() is RouteEndpoint routeEndpoint)
Microsoft.AspNetCore.Components.Server (2)
DependencyInjection\ServerRazorComponentsBuilderExtensions.cs (2)
150var routeEndpoint = (RouteEndpoint)endpoint;
Microsoft.AspNetCore.Diagnostics (1)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (1)
347if (endpoint is RouteEndpoint routeEndpoint)
Microsoft.AspNetCore.Diagnostics.Middleware (3)
Logging\HttpLoggingRedactionInterceptor.cs (2)
91var endpoint = context.GetEndpoint() as RouteEndpoint;
Logging\HttpUtilityExtensions.cs (1)
41if (endpoint is RouteEndpoint routeEndpoint)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (12)
Logging\HttpUtilityExtensionsTests.cs (2)
40var endpoint = new RouteEndpoint( 69var endpoint = new RouteEndpoint(
Logging\IncomingHttpRouteUtilityTests.cs (10)
44var endpoint = new RouteEndpoint( 82var endpoint = new RouteEndpoint( 122var endpoint = new RouteEndpoint( 164var endpoint = new RouteEndpoint( 206var endpoint = new RouteEndpoint( 253var endpoint = new RouteEndpoint( 294var endpoint = new RouteEndpoint( 342var endpoint = new RouteEndpoint( 387var endpoint = new RouteEndpoint( 425var endpoint = new RouteEndpoint(
Microsoft.AspNetCore.Mvc.ApiExplorer (4)
EndpointMetadataApiDescriptionProvider.cs (4)
60if (endpoint is RouteEndpoint routeEndpoint && 83private ApiDescription CreateApiDescription(RouteEndpoint routeEndpoint, string httpMethod, MethodInfo methodInfo, bool disableInferredBody) 172private ApiParameterDescription? CreateApiParameterDescription(IParameterBindingMetadata parameter, RouteEndpoint routeEndpoint, bool disableInferredBody) 251private (BindingSource, string, bool, Type) GetBindingSourceAndName(IParameterBindingMetadata parameter, RouteEndpoint routeEndpoint, bool disableInferredBody)
Microsoft.AspNetCore.Mvc.Core (11)
Builder\ControllerEndpointRouteBuilderExtensions.cs (10)
165/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that will match 223/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that will match 287/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that will match 347/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that will match 413/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that will 421/// This method allows the registration of a <see cref="RouteEndpoint"/> and <see cref="DynamicRouteValueTransformer"/> 438/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that will 447/// This method allows the registration of a <see cref="RouteEndpoint"/> and <see cref="DynamicRouteValueTransformer"/> 472/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that will 482/// This method allows the registration of a <see cref="RouteEndpoint"/> and <see cref="DynamicRouteValueTransformer"/>
Routing\ActionEndpointFactory.cs (1)
273endpoints.Add((RouteEndpoint)builder.Build());
Microsoft.AspNetCore.Mvc.RazorPages (10)
Builder\RazorPagesEndpointRouteBuilderExtensions.cs (10)
42/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that will match 92/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that will match 150/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that will match 204/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that will match 264/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that will 272/// This method allows the registration of a <see cref="RouteEndpoint"/> and <see cref="DynamicRouteValueTransformer"/> 287/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that will 296/// This method allows the registration of a <see cref="RouteEndpoint"/> and <see cref="DynamicRouteValueTransformer"/> 320/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that will 330/// This method allows the registration of a <see cref="RouteEndpoint"/> and <see cref="DynamicRouteValueTransformer"/>
Microsoft.AspNetCore.Routing (100)
Builder\EndpointRouteBuilderExtensions.cs (18)
58/// Adds a <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that matches HTTP GET requests 74/// Adds a <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that matches HTTP POST requests 90/// Adds a <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that matches HTTP PUT requests 106/// Adds a <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that matches HTTP DELETE requests 122/// Adds a <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that matches HTTP PATCH requests 138/// Adds a <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that matches HTTP requests 158/// Adds a <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that matches HTTP requests 174/// Adds a <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that matches HTTP requests 221/// Adds a <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that matches HTTP GET requests 239/// Adds a <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that matches HTTP POST requests 257/// Adds a <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that matches HTTP PUT requests 275/// Adds a <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that matches HTTP DELETE requests 293/// Adds a <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that matches HTTP PATCH requests 311/// Adds a <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that matches HTTP requests 332/// Adds a <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that matches HTTP requests 350/// Adds a <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that matches HTTP requests 368/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that will match 394/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that will match
Builder\FallbackEndpointRouteBuilderExtensions.cs (2)
21/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that will match 48/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that will match
DefaultLinkGenerator.cs (17)
33private readonly DataSourceDependentCache<ConcurrentDictionary<RouteEndpoint, TemplateBinder>> _cache; 36private readonly Func<RouteEndpoint, TemplateBinder> _createTemplateBinder; 51_cache = new DataSourceDependentCache<ConcurrentDictionary<RouteEndpoint, TemplateBinder>>(dataSource, (_) => 55return new ConcurrentDictionary<RouteEndpoint, TemplateBinder>(); 182private List<RouteEndpoint> GetEndpoints<TAddress>(TAddress address) 185var endpoints = addressingScheme.FindEndpoints(address).OfType<RouteEndpoint>().ToList(); 201List<RouteEndpoint> endpoints, 210var endpoint = endpoints[i]; 235List<RouteEndpoint> endpoints, 246var endpoint = endpoints[i]; 271private TemplateBinder CreateTemplateBinder(RouteEndpoint endpoint) 277internal TemplateBinder GetTemplateBinder(RouteEndpoint endpoint) => _cache.EnsureInitialized().GetOrAdd(endpoint, _createTemplateBinder); 282RouteEndpoint endpoint, 354public static void TemplateSucceeded(ILogger logger, RouteEndpoint endpoint, PathString path, QueryString query) 362public static void TemplateFailedRequiredValues(ILogger logger, RouteEndpoint endpoint, RouteValueDictionary? ambientValues, RouteValueDictionary values) 379public static void TemplateFailedConstraint(ILogger logger, RouteEndpoint endpoint, string? parameterName, IRouteConstraint? constraint, RouteValueDictionary values) 395public static void TemplateFailedExpansion(ILogger logger, RouteEndpoint endpoint, RouteValueDictionary values)
DefaultLinkParser.cs (10)
20private readonly DataSourceDependentCache<ConcurrentDictionary<RouteEndpoint, MatcherState>> _matcherCache; 23private readonly Func<RouteEndpoint, MatcherState> _createMatcher; 37_matcherCache = new DataSourceDependentCache<ConcurrentDictionary<RouteEndpoint, MatcherState>>(dataSource, (_) => 41return new ConcurrentDictionary<RouteEndpoint, MatcherState>(); 58var endpoint = endpoints[i]; 70private List<RouteEndpoint> GetEndpoints<TAddress>(TAddress address) 73var endpoints = addressingScheme.FindEndpoints(address).OfType<RouteEndpoint>().ToList(); 87private MatcherState CreateRoutePatternMatcher(RouteEndpoint endpoint) 116internal MatcherState GetMatcherState(RouteEndpoint endpoint) => _matcherCache.EnsureInitialized().GetOrAdd(endpoint, _createMatcher); 119internal bool TryParse(RouteEndpoint endpoint, PathString path, [NotNullWhen(true)] out RouteValueDictionary? values)
EndpointDataSource.cs (4)
39var wrappedEndpoints = new RouteEndpoint[endpoints.Count]; 47if (endpoint is not RouteEndpoint routeEndpoint) 82wrappedEndpoints[i] = (RouteEndpoint)routeEndpointBuilder.Build(); 100if (endpoint is RouteEndpoint routeEndpoint)
Internal\DfaGraphWriter.cs (1)
47if (endpoints[i] is RouteEndpoint endpoint && (endpoint.Metadata.GetMetadata<ISuppressMatchingMetadata>()?.SuppressMatching ?? false) == false)
Matching\DataSourceDependentMatcher.cs (1)
47if (endpoints[i] is RouteEndpoint endpoint)
Matching\DfaMatcher.cs (1)
430return (endpoint as RouteEndpoint)?.RoutePattern?.RawText ?? "(none)";
Matching\DfaMatcherBuilder.cs (14)
18private readonly List<RouteEndpoint> _endpoints = new List<RouteEndpoint>(); 62public override void AddEndpoint(RouteEndpoint endpoint) 81var endpoint = _endpoints[i]; 252RouteEndpoint endpoint, 372private void AddParentsMatchingComplexSegment(RouteEndpoint endpoint, List<DfaNode> nextParents, RoutePatternPathSegment segment, DfaNode parent, RoutePatternParameterPart parameterPart) 473private void AddRequiredLiteralValue(RouteEndpoint endpoint, List<DfaNode> nextParents, DfaNode parent, RoutePatternParameterPart parameterPart, object requiredValue) 511private static RoutePatternPathSegment GetCurrentSegment(RouteEndpoint endpoint, int depth) 532private static int GetPrecedenceDigitAtDepth(RouteEndpoint endpoint, int depth) 739if (endpoint is RouteEndpoint routeEndpoint) 848private static bool HasAdditionalRequiredSegments(RouteEndpoint endpoint, int depth) 992public RouteEndpoint Endpoint { get; } 998public DfaBuilderWorkerWorkItem(RouteEndpoint endpoint, int precedenceDigit, List<DfaNode> parents) 1005public void Deconstruct(out RouteEndpoint endpoint, out int precedenceDigit, out List<DfaNode> parents)
Matching\EndpointComparer.cs (12)
55var routeEndpointX = x as RouteEndpoint; 56var routeEndpointY = y as RouteEndpoint; 112var routeEndpointX = x as RouteEndpoint; 113var routeEndpointY = y as RouteEndpoint; 139var routeEndpointX = x as RouteEndpoint; 140var routeEndpointY = y as RouteEndpoint;
Matching\MatcherBuilder.cs (1)
8public abstract void AddEndpoint(RouteEndpoint endpoint);
RouteEndpoint.cs (1)
15/// Initializes a new instance of the <see cref="RouteEndpoint"/> class.
RouteEndpointBuilder.cs (2)
15/// Supports building a new <see cref="RouteEndpoint"/>. 52throw new InvalidOperationException($"{nameof(RequestDelegate)} must be specified to construct a {nameof(RouteEndpoint)}.");
RouteEndpointDataSource.cs (6)
93public override IReadOnlyList<RouteEndpoint> Endpoints 97var endpoints = new RouteEndpoint[_routeEntries.Count]; 100endpoints[i] = (RouteEndpoint)CreateRouteEndpointBuilder(_routeEntries[i]).Build(); 106public override IReadOnlyList<RouteEndpoint> GetGroupedEndpoints(RouteGroupContext context) 108var endpoints = new RouteEndpoint[_routeEntries.Count]; 111endpoints[i] = (RouteEndpoint)CreateRouteEndpointBuilder(_routeEntries[i], context.Prefix, context.Conventions, context.FinallyConventions).Build();
RouteGroupContext.cs (5)
15/// Gets the <see cref="RouteEndpoint.RoutePattern"/> which should prefix the <see cref="RouteEndpoint.RoutePattern"/> of all <see cref="RouteEndpoint"/> instances 23/// via <see cref="IEndpointConventionBuilder.Add(Action{EndpointBuilder})"/>. These should be applied in order when building every <see cref="RouteEndpoint"/> 30/// via <see cref="IEndpointConventionBuilder.Add(Action{EndpointBuilder})"/>. These should be applied in LIFO order when building every <see cref="RouteEndpoint"/>
RouteValuesAddressScheme.cs (4)
49return new[] { (RouteEndpoint)matchResults[0].Match.Entry.Data }; 66yield return (RouteEndpoint)matchResults[i].Match.Entry.Data; 95if (!(endpoint is RouteEndpoint routeEndpoint)) 147RouteEndpoint endpoint,
ShortCircuit\RouteShortCircuitEndpointRouteBuilderExtensions.cs (1)
16/// Adds a <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that matches HTTP requests (all verbs)
Microsoft.AspNetCore.StaticFiles (4)
StaticFilesEndpointRouteBuilderExtensions.cs (4)
23/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that will match 60/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that will match 96/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that will match 139/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="IEndpointRouteBuilder"/> that will match