1 write to DisplayName
Microsoft.AspNetCore.Http.Abstractions (1)
Routing\Endpoint.cs (1)
32DisplayName = displayName;
152 references to DisplayName
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
RazorComponentEndpointFactoryTest.cs (1)
33Assert.Equal("/ (App)", endpoint.DisplayName);
Microsoft.AspNetCore.Diagnostics (1)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (1)
325DisplayName = endpoint.DisplayName,
Microsoft.AspNetCore.Diagnostics.Tests (2)
DeveloperExceptionPageMiddlewareTest.cs (2)
88context.ProblemDetails.Extensions.Add("EndpointDisplayName", feature?.Endpoint?.DisplayName); 147context.ProblemDetails.Extensions.Add("EndpointDisplayName", feature?.Endpoint?.DisplayName);
Microsoft.AspNetCore.Http (1)
Builder\ApplicationBuilder.cs (1)
175$"The request reached the end of the pipeline without executing the endpoint: '{endpoint!.DisplayName}'. " +
Microsoft.AspNetCore.Http.Abstractions (1)
Routing\Endpoint.cs (1)
53public override string? ToString() => DisplayName ?? base.ToString();
Microsoft.AspNetCore.Http.Connections.Tests (25)
HttpConnectionDispatcherTests.cs (1)
836Assert.Equal("TestName", endpointFeature.Endpoint.DisplayName);
MapConnectionHandlerTests.cs (24)
50Assert.Equal("/auth/negotiate", endpoint.DisplayName); 60Assert.Equal("/auth", endpoint.DisplayName); 87Assert.Equal("/auth/negotiate", endpoint.DisplayName); 92Assert.Equal("/auth", endpoint.DisplayName); 114Assert.Equal("/auth/negotiate", endpoint.DisplayName); 119Assert.Equal("/auth", endpoint.DisplayName); 142Assert.Equal("/auth/negotiate", endpoint.DisplayName); 147Assert.Equal("/auth", endpoint.DisplayName); 173Assert.Equal("/auth/negotiate", endpoint.DisplayName); 178Assert.Equal("/auth", endpoint.DisplayName); 202Assert.Equal("/path/negotiate", endpoint.DisplayName); 207Assert.Equal("/path", endpoint.DisplayName); 232Assert.Equal("/path/negotiate", endpoint.DisplayName); 237Assert.Equal("/path", endpoint.DisplayName); 264Assert.Equal("/path/negotiate", endpoint.DisplayName); 274Assert.Equal("/path", endpoint.DisplayName); 302Assert.Equal("/path/negotiate", endpoint.DisplayName); 310Assert.Equal("/path", endpoint.DisplayName); 338Assert.Equal("/path/negotiate", endpoint.DisplayName); 349Assert.Equal("/path", endpoint.DisplayName); 372Assert.Equal("/path/negotiate", endpoint.DisplayName); 377Assert.Equal("/path", endpoint.DisplayName); 420Assert.Equal("/test/negotiate", endpoint.DisplayName); 425Assert.Equal("/test", endpoint.DisplayName);
Microsoft.AspNetCore.Http.Extensions.Tests (2)
RequestDelegateGenerator\CompileTimeCreationTests.cs (2)
408httpContext.Request.QueryString = QueryString.Create("value", endpoint.DisplayName); 411await VerifyResponseBodyAsync(httpContext, $"Hello {endpoint.DisplayName}!");
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
EndpointMetadataApiDescriptionProvider.cs (1)
109DisplayName = routeEndpoint.DisplayName,
Microsoft.AspNetCore.Mvc.Core.Test (1)
Routing\DynamicControllerEndpointMatcherPolicyTest.cs (1)
390Assert.Equal("ReplacedEndpoint", candidates[0].Endpoint.DisplayName);
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Infrastructure\DynamicPageEndpointMatcherPolicyTest.cs (1)
391Assert.Equal("ReplacedLoaded", candidates[0].Endpoint.DisplayName);
Microsoft.AspNetCore.Rewrite.Tests (1)
MiddlewareTests.cs (1)
660endpoints.MapGet("/foo", context => context.Response.WriteAsync($"{context.GetEndpoint()?.DisplayName} from {context.Request.Path}"));
Microsoft.AspNetCore.Routing (29)
DefaultLinkGenerator.cs (7)
344EndpointsFound(logger, endpoints.Select(e => e.DisplayName), address); 355=> TemplateSucceeded(logger, endpoint.RoutePattern.RawText, endpoint.DisplayName, path.Value, query.Value); 367TemplateFailedRequiredValues(logger, endpoint.RoutePattern.RawText, endpoint.DisplayName, FormatRouteValues(ambientValues), FormatRouteValues(values), FormatRouteValues(endpoint.RoutePattern.Defaults)); 384TemplateFailedConstraint(logger, endpoint.RoutePattern.RawText, endpoint.DisplayName, constraint, parameterName, FormatRouteValues(values)); 400TemplateFailedExpansion(logger, endpoint.RoutePattern.RawText, endpoint.DisplayName, FormatRouteValues(values)); 417LinkGenerationSucceeded(logger, endpoints.Select(e => e.DisplayName), uri); 432LinkGenerationFailed(logger, endpoints.Select(e => e.DisplayName));
DefaultLinkParser.cs (3)
177EndpointsFound(logger, endpoints.Select(e => e.DisplayName), address); 192PathParsingSucceeded(logger, endpoint.DisplayName, path.Value); 204PathParsingFailed(logger, endpoints.Select(e => e.DisplayName), path.Value);
EndpointDataSource.cs (2)
57DisplayName = routeEndpoint.DisplayName, 138sb.AppendLine(endpoint.DisplayName);
EndpointMiddleware.cs (3)
106throw new InvalidOperationException($"Endpoint {endpoint.DisplayName} contains authorization metadata, " + 114throw new InvalidOperationException($"Endpoint {endpoint.DisplayName} contains CORS metadata, " + 122throw new InvalidOperationException($"Endpoint {endpoint.DisplayName} contains anti-forgery metadata, " +
EndpointNameAddressScheme.cs (1)
87builder.AppendLine(endpoint.DisplayName);
EndpointRoutingMiddleware.cs (5)
286throw new InvalidOperationException($"Endpoint {endpoint.DisplayName} contains authorization metadata, " + 292throw new InvalidOperationException($"Endpoint {endpoint.DisplayName} contains CORS metadata, " + 298throw new InvalidOperationException($"Endpoint {endpoint.DisplayName} contains anti-forgery metadata, " + 340=> MatchSuccess(logger, endpoint.DisplayName); 349=> MatchingSkipped(logger, endpoint.DisplayName);
Matching\CandidateSet.cs (1)
351string.Join(Environment.NewLine, duplicates.Select(e => e.DisplayName));
Matching\DataSourceDependentMatcher.cs (2)
55throw new InvalidOperationException($"Duplicate endpoint name '{endpointName}' found on '{endpoint.DisplayName}' and '{existingEndpoint}'. Endpoint names must be globally unique."); 58seenEndpointNames.Add(endpointName, endpoint.DisplayName ?? endpoint.RoutePattern.RawText);
Matching\DefaultEndpointSelector.cs (1)
123string.Join(Environment.NewLine, matches.Select(e => e.DisplayName)));
Matching\DfaMatcher.cs (4)
370CandidateRejectedByComplexSegment(logger, endpoint.DisplayName, routePattern, segment.DebuggerToString(), path); 386CandidateRejectedByConstraint(logger, endpoint.DisplayName, routePattern, constraintName, constraint.ToString(), value, path); 402CandidateNotValid(logger, endpoint.DisplayName, routePattern, path); 418CandidateValid(logger, endpoint.DisplayName, routePattern, path);
Microsoft.AspNetCore.Routing.Microbenchmarks (2)
EndpointRoutingBenchmarkBase.cs (2)
75message.AppendLine(FormattableString.Invariant($"expected: '{((RouteEndpoint)expected)?.DisplayName ?? "null"}'")); 76message.AppendLine(FormattableString.Invariant($"actual: '{((RouteEndpoint)actual)?.DisplayName ?? "null"}'"));
Microsoft.AspNetCore.Routing.Tests (49)
Builder\EndpointRoutingApplicationBuilderExtensionsTest.cs (17)
214e => Assert.Equal("Test endpoint 1", e.DisplayName), 215e => Assert.Equal("Test endpoint 2", e.DisplayName)); 218e => Assert.Equal("Test endpoint 3", e.DisplayName), 219e => Assert.Equal("Test endpoint 4", e.DisplayName)); 225e => Assert.Equal("Test endpoint 1", e.DisplayName), 226e => Assert.Equal("Test endpoint 2", e.DisplayName), 227e => Assert.Equal("Test endpoint 3", e.DisplayName), 228e => Assert.Equal("Test endpoint 4", e.DisplayName)); 280e => Assert.Equal("Test endpoint 1", e.DisplayName), 281e => Assert.Equal("Test endpoint 2", e.DisplayName)); 284e => Assert.Equal("Test endpoint 3", e.DisplayName), 285e => Assert.Equal("Test endpoint 4", e.DisplayName)); 291e => Assert.Equal("Test endpoint 1", e.DisplayName), 292e => Assert.Equal("Test endpoint 2", e.DisplayName), 293e => Assert.Equal("Test endpoint 3", e.DisplayName), 294e => Assert.Equal("Test endpoint 4", e.DisplayName)); 321e => Assert.Equal("Test endpoint 1", e.DisplayName));
Builder\GroupTest.cs (4)
42Assert.Equal("HTTP: GET /{id}", endpoint.DisplayName); 74Assert.Equal("HTTP: GET /{org}/{id}", endpoint.DisplayName); 108Assert.Equal("HTTP: GET /{org}/{id}/", endpoint.DisplayName); 294Assert.Equal("Prefixed! HTTP: GET /group/", endpoint.DisplayName);
Builder\RoutingEndpointConventionBuilderExtensionsTest.cs (2)
73Assert.Equal("test", endpoint.DisplayName); 100Assert.Equal("test", endpoint.DisplayName);
DefaultEndpointDataSourceTests.cs (4)
21endpoint => Assert.Equal("1", endpoint.DisplayName), 22endpoint => Assert.Equal("2", endpoint.DisplayName)); 65endpoint => Assert.Equal("1", endpoint.DisplayName), 66endpoint => Assert.Equal("2", endpoint.DisplayName));
EndpointRoutingMiddlewareTest.cs (1)
55Assert.Equal("myapp", endpoint.DisplayName);
Matching\AcceptsMatcherPolicyTest.cs (1)
245Assert.Equal(AcceptsMatcherPolicy.Http415EndpointDisplayName, Assert.Single(e.Endpoints).DisplayName);
Matching\ContentEncodingNegotiationMatcherPolicyTest.cs (8)
367Assert.Equal("406 HTTP Unsupported Encoding", endpoint.DisplayName); 373Assert.Equal("406 HTTP Unsupported Encoding", endpoint.DisplayName); 398e => Assert.Equal("Endpoint -> gzip: 1", e.DisplayName), 399e => Assert.Equal("Identity", e.DisplayName)); 405e => Assert.Equal("Endpoint -> br: 1", e.DisplayName), 406e => Assert.Equal("Identity", e.DisplayName)); 412Assert.Equal("Identity", endpoint.DisplayName); 418Assert.Equal("Identity", endpoint.DisplayName);
Matching\HttpMethodMatcherPolicyIntegrationTestBase.cs (3)
79Assert.Same(HttpMethodMatcherPolicy.Http405EndpointDisplayName, httpContext.GetEndpoint().DisplayName); 199Assert.Same(HttpMethodMatcherPolicy.Http405EndpointDisplayName, httpContext.GetEndpoint().DisplayName); 309Assert.Same(HttpMethodMatcherPolicy.Http405EndpointDisplayName, httpContext.GetEndpoint().DisplayName);
Matching\HttpMethodMatcherPolicyTest.cs (3)
173Assert.True(string.Equals(httpContext.GetEndpoint().DisplayName, Http405EndpointDisplayName, StringComparison.OrdinalIgnoreCase)); 310Assert.Equal(Http405EndpointDisplayName, e.Endpoints.Single().DisplayName); 354Assert.Equal(Http405EndpointDisplayName, e.Endpoints.Single().DisplayName);
Matching\MatcherAssert.cs (5)
63throw new XunitException($"Was expected to match '{expected.DisplayName}' but did not match."); 76$"Was expected to match '{expected.DisplayName}' but matched " + 77$"'{httpContext.GetEndpoint().DisplayName}' with values: {FormatRouteValues(actualValues)}."); 88$"Was expected to match '{expected.DisplayName}' with values {FormatRouteValues(values)} but matched " + 99$"Was expected not to match '{httpContext.GetEndpoint().DisplayName}' " +
RouteEndpointBuilderTest.cs (1)
41Assert.Equal("Display name!", endpoint.DisplayName);
Microsoft.AspNetCore.SignalR.Tests (18)
MapSignalRTests.cs (18)
89Assert.Equal("/path/negotiate", endpoint.DisplayName); 94Assert.Equal("/path", endpoint.DisplayName); 122Assert.Equal("/path/negotiate", endpoint.DisplayName); 132Assert.Equal("/path", endpoint.DisplayName); 161Assert.Equal("/path/negotiate", endpoint.DisplayName); 166Assert.Equal("/path", endpoint.DisplayName); 190Assert.Equal("/path/negotiate", endpoint.DisplayName); 195Assert.Equal("/path", endpoint.DisplayName); 219Assert.Equal("/path/negotiate", endpoint.DisplayName); 224Assert.Equal("/path", endpoint.DisplayName); 251Assert.Equal("/path/negotiate", endpoint.DisplayName); 256Assert.Equal("/path", endpoint.DisplayName); 283Assert.Equal("/path/negotiate", endpoint.DisplayName); 293Assert.Equal("/path", endpoint.DisplayName); 322Assert.Equal("/path/negotiate", endpoint.DisplayName); 328Assert.Equal("/path", endpoint.DisplayName); 353Assert.Equal("/path/negotiate", endpoint.DisplayName); 359Assert.Equal("/path", endpoint.DisplayName);
Microsoft.AspNetCore.Tests (17)
WebApplicationTests.cs (17)
1694chosenEndpoint = c.GetEndpoint().DisplayName; 1721chosenEndpoint = c.GetEndpoint()?.DisplayName; 1730chosenEndpoint = c.GetEndpoint().DisplayName; 1876Assert.Equal("One", ds.Endpoints[0].DisplayName); 1877Assert.Equal("Two", ds.Endpoints[1].DisplayName); 1878Assert.Equal("Three", ds.Endpoints[2].DisplayName); 1895chosenRoute = context.GetEndpoint()?.DisplayName; 1928chosenRoute = c.GetEndpoint()?.DisplayName; 1936Assert.Equal("One", ds.Endpoints[0].DisplayName); 1961chosenRoute = c.GetEndpoint()?.DisplayName; 1975chosenRoute = c.GetEndpoint()?.DisplayName; 1980chosenRoute = c.GetEndpoint()?.DisplayName; 1990var displayNames = ds.Endpoints.Select(e => e.DisplayName).ToArray(); 2547chosenRoute = context.GetEndpoint()?.DisplayName; 2573chosenRoute = context.GetEndpoint()?.DisplayName; 2626chosenRoute = context.GetEndpoint()?.DisplayName; 2656chosenRoute = context.GetEndpoint()?.DisplayName;