60 instantiations of 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 (4)
Routing\ControllerLinkGeneratorExtensionsTest.cs (1)
220services.TryAddEnumerable(ServiceDescriptor.Singleton<EndpointDataSource>(new DefaultEndpointDataSource(endpoints)));
Routing\DynamicControllerEndpointMatcherPolicyTest.cs (1)
62DataSource = new DefaultEndpointDataSource(ControllerEndpoints);
Routing\EndpointRoutingUrlHelperTest.cs (1)
287ServiceDescriptor.Singleton<EndpointDataSource>(new DefaultEndpointDataSource(endpoints)));
Routing\PageLinkGeneratorExtensionsTest.cs (1)
190services.TryAddEnumerable(ServiceDescriptor.Singleton<EndpointDataSource>(new DefaultEndpointDataSource(endpoints)));
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 (52)
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 (6)
14var dataSource = new DefaultEndpointDataSource( 34var dataSource = new DefaultEndpointDataSource(endpoints); 49var actual = Assert.Throws<ArgumentNullException>(() => new DefaultEndpointDataSource(endpoints)); 57var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 78var dataSource = new DefaultEndpointDataSource((IEnumerable<Endpoint>)endpoints); 93var 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>()) });
Matching\DfaMatcherTest.cs (29)
65var endpointDataSource = new DefaultEndpointDataSource(new List<Endpoint> 86var endpointDataSource = new DefaultEndpointDataSource(new List<Endpoint> 115var endpointDataSource = new DefaultEndpointDataSource(new List<Endpoint> 141var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 180var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 206var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 255var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 289var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 324var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 361var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 388var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 415var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 446var dataSource = new DefaultEndpointDataSource(endpoints); 467var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 493var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 520var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 551var dataSource = new DefaultEndpointDataSource(endpoints); 584var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 621var endpointDataSource = new DefaultEndpointDataSource(new List<Endpoint> 667var endpointDataSource = new DefaultEndpointDataSource(new List<Endpoint> 713var endpointDataSource = new DefaultEndpointDataSource(new List<Endpoint> 760var endpointDataSource = new DefaultEndpointDataSource(new List<Endpoint> 782var endpointDataSource = new DefaultEndpointDataSource(new List<Endpoint> 812var endpointDataSource = new DefaultEndpointDataSource(new List<Endpoint> 852var endpointDataSource = new DefaultEndpointDataSource(new List<Endpoint> 892var endpointDataSource = new DefaultEndpointDataSource(new List<Endpoint> 949var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 985var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 1020var dataSource = new DefaultEndpointDataSource(new List<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(),
43 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)
82private DefaultEndpointDataSource DataSource { get; }
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Infrastructure\DynamicPageEndpointMatcherPolicyTest.cs (1)
95private DefaultEndpointDataSource DataSource { get; }
Microsoft.AspNetCore.Routing (2)
DefaultEndpointDataSource.cs (2)
20/// Initializes a new instance of the <see cref="DefaultEndpointDataSource" /> class. 31/// Initializes a new instance of the <see cref="DefaultEndpointDataSource" /> class.
Microsoft.AspNetCore.Routing.Tests (37)
CompositeEndpointDataSourceTest.cs (1)
24var dataSource = new DefaultEndpointDataSource(new Endpoint[] { endpoint1, endpoint2 });
DefaultEndpointDataSourceTests.cs (4)
14var dataSource = new DefaultEndpointDataSource( 34var dataSource = new DefaultEndpointDataSource(endpoints); 57var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 78var dataSource = new DefaultEndpointDataSource((IEnumerable<Endpoint>)endpoints);
Internal\DfaGraphWriterTest.cs (3)
27var endpointsDataSource = new DefaultEndpointDataSource(new Endpoint((context) => null, EndpointMetadataCollection.Empty, string.Empty)); 44var endpointsDataSource = new DefaultEndpointDataSource( 67var endpointsDataSource = new DefaultEndpointDataSource(
Matching\DfaMatcherTest.cs (29)
65var endpointDataSource = new DefaultEndpointDataSource(new List<Endpoint> 86var endpointDataSource = new DefaultEndpointDataSource(new List<Endpoint> 115var endpointDataSource = new DefaultEndpointDataSource(new List<Endpoint> 141var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 180var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 206var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 255var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 289var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 324var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 361var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 388var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 415var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 446var dataSource = new DefaultEndpointDataSource(endpoints); 467var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 493var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 520var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 551var dataSource = new DefaultEndpointDataSource(endpoints); 584var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 621var endpointDataSource = new DefaultEndpointDataSource(new List<Endpoint> 667var endpointDataSource = new DefaultEndpointDataSource(new List<Endpoint> 713var endpointDataSource = new DefaultEndpointDataSource(new List<Endpoint> 760var endpointDataSource = new DefaultEndpointDataSource(new List<Endpoint> 782var endpointDataSource = new DefaultEndpointDataSource(new List<Endpoint> 812var endpointDataSource = new DefaultEndpointDataSource(new List<Endpoint> 852var endpointDataSource = new DefaultEndpointDataSource(new List<Endpoint> 892var endpointDataSource = new DefaultEndpointDataSource(new List<Endpoint> 949var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 985var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 1020var dataSource = new DefaultEndpointDataSource(new List<Endpoint>