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