16 instantiations of RouteEndpoint
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (15)
Logging\HttpUtilityExtensionsTests.cs (2)
40var endpoint = new RouteEndpoint( 69var endpoint = new RouteEndpoint(
Logging\IncomingHttpRouteUtilityTests.cs (13)
40var endpoint = new RouteEndpoint( 78var endpoint = new RouteEndpoint( 118var endpoint = new RouteEndpoint( 160var endpoint = new RouteEndpoint( 202var endpoint = new RouteEndpoint( 249var endpoint = new RouteEndpoint( 290var endpoint = new RouteEndpoint( 338var endpoint = new RouteEndpoint( 394var unclassifiedEndpoint = new RouteEndpoint( 401var classifiedEndpoint = new RouteEndpoint( 460var endpoint = new RouteEndpoint( 500var endpoint = new RouteEndpoint( 538var endpoint = new RouteEndpoint(
Microsoft.AspNetCore.Routing (1)
RouteEndpointBuilder.cs (1)
55return new RouteEndpoint(
155 references to RouteEndpoint
Microsoft.AspNetCore.Components.Endpoints (1)
Rendering\EndpointHtmlRenderer.cs (1)
149if (httpContext.GetEndpoint() is RouteEndpoint routeEndpoint)
Microsoft.AspNetCore.Components.Server (2)
DependencyInjection\ServerRazorComponentsBuilderExtensions.cs (2)
150var routeEndpoint = (RouteEndpoint)endpoint;
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
WebAssemblyEndpointProvider.cs (2)
70var 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 (15)
Logging\HttpUtilityExtensionsTests.cs (2)
40var endpoint = new RouteEndpoint( 69var endpoint = new RouteEndpoint(
Logging\IncomingHttpRouteUtilityTests.cs (13)
40var endpoint = new RouteEndpoint( 78var endpoint = new RouteEndpoint( 118var endpoint = new RouteEndpoint( 160var endpoint = new RouteEndpoint( 202var endpoint = new RouteEndpoint( 249var endpoint = new RouteEndpoint( 290var endpoint = new RouteEndpoint( 338var endpoint = new RouteEndpoint( 394var unclassifiedEndpoint = new RouteEndpoint( 401var classifiedEndpoint = new RouteEndpoint( 460var endpoint = new RouteEndpoint( 500var endpoint = new RouteEndpoint( 538var 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 (102)
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 (20)
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) 200internal static List<RouteEndpoint> ToRouteEndpointList(IEnumerable<Endpoint> endpoints) 206var result = new List<RouteEndpoint>(array.Length); 209if (array[i] is RouteEndpoint routeEndpoint) 218return endpoints.OfType<RouteEndpoint>().ToList(); 223List<RouteEndpoint> endpoints, 232var endpoint = endpoints[i]; 257List<RouteEndpoint> endpoints, 268var endpoint = endpoints[i]; 293private TemplateBinder CreateTemplateBinder(RouteEndpoint endpoint) 299internal TemplateBinder GetTemplateBinder(RouteEndpoint endpoint) => _cache.EnsureInitialized().GetOrAdd(endpoint, _createTemplateBinder); 304RouteEndpoint endpoint, 381public static void TemplateSucceeded(ILogger logger, RouteEndpoint endpoint, PathString path, QueryString query) 389public static void TemplateFailedRequiredValues(ILogger logger, RouteEndpoint endpoint, RouteValueDictionary? ambientValues, RouteValueDictionary values) 406public static void TemplateFailedConstraint(ILogger logger, RouteEndpoint endpoint, string? parameterName, IRouteConstraint? constraint, RouteValueDictionary values) 422public static void TemplateFailedExpansion(ILogger logger, RouteEndpoint endpoint, RouteValueDictionary values)
DefaultLinkParser.cs (9)
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) 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>(); 66public override void AddEndpoint(RouteEndpoint endpoint) 85var endpoint = _endpoints[i]; 256RouteEndpoint endpoint, 376private void AddParentsMatchingComplexSegment(RouteEndpoint endpoint, List<DfaNode> nextParents, RoutePatternPathSegment segment, DfaNode parent, RoutePatternParameterPart parameterPart) 477private void AddRequiredLiteralValue(RouteEndpoint endpoint, List<DfaNode> nextParents, DfaNode parent, RoutePatternParameterPart parameterPart, object requiredValue) 515private static RoutePatternPathSegment GetCurrentSegment(RouteEndpoint endpoint, int depth) 536private static int GetPrecedenceDigitAtDepth(RouteEndpoint endpoint, int depth) 757if (endpoint is RouteEndpoint routeEndpoint) 896private static bool HasAdditionalRequiredSegments(RouteEndpoint endpoint, int depth) 1040public RouteEndpoint Endpoint { get; } 1046public DfaBuilderWorkerWorkItem(RouteEndpoint endpoint, int precedenceDigit, List<DfaNode> parents) 1053public 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