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