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