25 references to DefaultEndpointDataSource
Benchmarks (1)
StartupUsingEndpointRouting.cs (1)
24
var endpointDataSource = new
DefaultEndpointDataSource
(new[]
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
EndpointMetadataApiDescriptionProviderTest.cs (1)
1556
var endpointDataSource = new
DefaultEndpointDataSource
(endpoint);
Microsoft.AspNetCore.Mvc.Core.Test (1)
Routing\DynamicControllerEndpointMatcherPolicyTest.cs (1)
62
DataSource = new
DefaultEndpointDataSource
(ControllerEndpoints);
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Infrastructure\DynamicPageEndpointMatcherPolicyTest.cs (1)
53
DataSource = new
DefaultEndpointDataSource
(PageEndpoints);
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
EndpointRoutingBenchmarkBase.cs (1)
35
ServiceDescriptor.Singleton<EndpointDataSource>(new
DefaultEndpointDataSource
(Endpoints)));
Microsoft.AspNetCore.Routing.Tests (20)
Builder\EndpointRoutingApplicationBuilderExtensionsTest.cs (1)
94
endpoints.DataSources.Add(new
DefaultEndpointDataSource
(endpoint));
CompositeEndpointDataSourceTest.cs (4)
24
var dataSource = new
DefaultEndpointDataSource
(new Endpoint[] { endpoint1, endpoint2 });
94
new
DefaultEndpointDataSource
(new Endpoint[] { endpoint1, endpoint2 }),
95
new
DefaultEndpointDataSource
(new Endpoint[] { endpoint3, endpoint4 }),
96
new
DefaultEndpointDataSource
(new Endpoint[] { endpoint5 }),
DefaultEndpointDataSourceTests.cs (3)
14
var dataSource = new
DefaultEndpointDataSource
(
34
var dataSource = new
DefaultEndpointDataSource
(endpoints);
49
var actual = Assert.Throws<ArgumentNullException>(() => new
DefaultEndpointDataSource
(endpoints));
EndpointNameAddressSchemeTest.cs (1)
188
return CreateAddressScheme(new
DefaultEndpointDataSource
(endpoints));
EndpointRoutingMiddlewareFormOptionsTest.cs (1)
220
new
DefaultEndpointDataSource
(),
EndpointRoutingMiddlewareTest.cs (1)
480
new
DefaultEndpointDataSource
(),
Internal\DfaGraphWriterTest.cs (3)
27
var endpointsDataSource = new
DefaultEndpointDataSource
(new Endpoint((context) => null, EndpointMetadataCollection.Empty, string.Empty));
44
var endpointsDataSource = new
DefaultEndpointDataSource
(
67
var endpointsDataSource = new
DefaultEndpointDataSource
(
LinkGeneratorTestBase.cs (1)
43
return CreateLinkGenerator(configureServices, new[] { new
DefaultEndpointDataSource
(endpoints ?? Array.Empty<Endpoint>()) });
LinkParserTestBase.cs (1)
35
return CreateLinkParser(configureServices, new[] { new
DefaultEndpointDataSource
(endpoints ?? Array.Empty<Endpoint>()) });
RouteOptionsTests.cs (2)
44
options.EndpointDataSources.Add(new
DefaultEndpointDataSource
(endpoint1));
51
options.EndpointDataSources.Add(new
DefaultEndpointDataSource
(endpoint2));
RouteValuesAddressSchemeTest.cs (1)
417
return CreateAddressScheme(new
DefaultEndpointDataSource
(endpoints));
RoutingMetricsTests.cs (1)
167
new
DefaultEndpointDataSource
(),