16 implementations of DataSources
Microsoft.AspNetCore (1)
WebApplication.cs (1)
84ICollection<EndpointDataSource> IEndpointRouteBuilder.DataSources => DataSources;
Microsoft.AspNetCore.Components.Endpoints.Tests (3)
Builder\RazorComponentsEndpointConventionBuilderExtensionsTest.cs (1)
281public ICollection<EndpointDataSource> DataSources { get; } = [];
HotReloadServiceTests.cs (1)
300public ICollection<EndpointDataSource> DataSources => _dataSources;
RazorComponentEndpointDataSourceTest.cs (1)
324public ICollection<EndpointDataSource> DataSources => _dataSources;
Microsoft.AspNetCore.Components.Server (1)
DependencyInjection\ServerRazorComponentsBuilderExtensions.cs (1)
134public ICollection<EndpointDataSource> DataSources { get; } = new List<EndpointDataSource>() { };
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (1)
JsonTranscodingServiceMethodProviderTests.cs (1)
246public ICollection<EndpointDataSource> DataSources { get; }
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
MapPathMiddlewareTests.cs (1)
258public ICollection<EndpointDataSource> DataSources => throw new NotImplementedException();
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
481public ICollection<EndpointDataSource> DataSources { get; }
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
481public ICollection<EndpointDataSource> DataSources { get; }
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
EndpointMetadataApiDescriptionProviderTest.cs (1)
1627public ICollection<EndpointDataSource> DataSources { get; }
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Builder\PageActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (1)
232public ICollection<EndpointDataSource> DataSources { get; } = [];
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (1)
305public ICollection<EndpointDataSource> DataSources { get; } = [];
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiDocumentServiceTestsBase.cs (1)
179public ICollection<EndpointDataSource> DataSources { get; }
Microsoft.AspNetCore.Routing (2)
DefaultEndpointRouteBuilder.cs (1)
20public ICollection<EndpointDataSource> DataSources { get; }
RouteGroupBuilder.cs (1)
36ICollection<EndpointDataSource> IEndpointRouteBuilder.DataSources => _dataSources;
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
EndpointRoutingShortCircuitBenchmark.cs (1)
102public ICollection<EndpointDataSource> DataSources => new List<EndpointDataSource>();
39 references to DataSources
Benchmarks (1)
StartupUsingEndpointRouting.cs (1)
42endpoints.DataSources.Add(endpointDataSource);
IntegrationTestsWebsite (1)
Startup.cs (1)
35endpoints.DataSources.Add(endpoints.ServiceProvider.GetRequiredService<DynamicEndpointDataSource>());
Microsoft.AspNetCore.Components.Endpoints (2)
Builder\RazorComponentsEndpointRouteBuilderExtensions.cs (2)
45var dataSource = endpoints.DataSources.OfType<RazorComponentEndpointDataSource<TRootComponent>>().FirstOrDefault(); 50endpoints.DataSources.Add(dataSource);
Microsoft.AspNetCore.Components.Endpoints.Tests (2)
Builder\RazorComponentsEndpointConventionBuilderExtensionsTest.cs (2)
185var groupEndpoints = Assert.IsAssignableFrom<IEndpointRouteBuilder>(group).DataSources; 211var groupEndpoints = Assert.IsAssignableFrom<IEndpointRouteBuilder>(group).DataSources;
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (1)
JsonTranscodingServiceMethodProviderTests.cs (1)
277return endpointRouteBuilder.DataSources.Single().Endpoints;
Microsoft.AspNetCore.Mvc.Core (2)
Builder\ControllerEndpointRouteBuilderExtensions.cs (2)
530var dataSource = endpoints.DataSources.OfType<ControllerActionEndpointDataSource>().FirstOrDefault(); 536endpoints.DataSources.Add(dataSource);
Microsoft.AspNetCore.Mvc.RazorPages (2)
Builder\RazorPagesEndpointRouteBuilderExtensions.cs (2)
376var dataSource = endpoints.DataSources.OfType<PageActionEndpointDataSource>().FirstOrDefault(); 382endpoints.DataSources.Add(dataSource);
Microsoft.AspNetCore.Mvc.RazorPages.Test (2)
Builder\PageActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (2)
166var groupEndpoints = Assert.IsAssignableFrom<IEndpointRouteBuilder>(group).DataSources; 192var groupEndpoints = Assert.IsAssignableFrom<IEndpointRouteBuilder>(group).DataSources;
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (2)
221var groupEndpoints = Assert.IsAssignableFrom<IEndpointRouteBuilder>(group).DataSources; 256var groupEndpoints = Assert.IsAssignableFrom<IEndpointRouteBuilder>(group).DataSources;
Microsoft.AspNetCore.OpenApi.Tests (2)
Extensions\OpenApiRouteHandlerBuilderExtensionTests.cs (1)
249return Assert.IsType<RouteEndpointDataSource>(Assert.Single(endpointRouteBuilder.DataSources));
Services\OpenApiDocumentServiceTestsBase.cs (1)
116var endpointDataSource = builder.DataSources.OfType<EndpointDataSource>().Single();
Microsoft.AspNetCore.Routing (5)
Builder\EndpointRouteBuilderExtensions.cs (2)
446foreach (var dataSource in endpoints.DataSources) 462endpoints.DataSources.Add(routeEndpointDataSource);
Builder\EndpointRoutingApplicationBuilderExtensions.cs (1)
105foreach (var dataSource in endpointRouteBuilder.DataSources)
EndpointRoutingMiddleware.cs (1)
56_endpointDataSource = new CompositeEndpointDataSource(endpointRouteBuilder.DataSources);
RouteGroupBuilder.cs (1)
31_outerEndpointRouteBuilder.DataSources.Add(new GroupEndpointDataSource(this));
Microsoft.AspNetCore.Routing.FunctionalTests (2)
RouteHandlerTest.cs (2)
77b.DataSources.Add(testDisposeDataSource); 80((IEndpointRouteBuilder)group).DataSources.Add(testGroupDisposeDataSource);
Microsoft.AspNetCore.Routing.Tests (10)
Builder\EndpointRoutingApplicationBuilderExtensionsTest.cs (4)
94endpoints.DataSources.Add(new DefaultEndpointDataSource(endpoint)); 306mockRouteBuilder.Setup(m => m.DataSources).Returns(new List<EndpointDataSource>()); 319var endpointDataSource = Assert.Single(mockRouteBuilder.Object.DataSources); 324Assert.Equal(mockRouteBuilder.Object.DataSources, routeOptions.Value.EndpointDataSources);
Builder\FallbackEndpointRouteBuilderExtensionsTest.cs (1)
14Assert.Single(endpointRouteBuilder.DataSources);
Builder\GroupTest.cs (3)
19return Assert.IsAssignableFrom<EndpointDataSource>(Assert.Single(endpointRouteBuilder.DataSources)); 306((IEndpointRouteBuilder)group).DataSources.Add(new TestCustomEndpintDataSource()); 368((IEndpointRouteBuilder)group).DataSources.Add(dynamicDataSource);
Builder\RequestDelegateEndpointRouteBuilderExtensionsTest.cs (1)
21Assert.Single(endpointRouteBuilder.DataSources);
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (1)
22return Assert.IsType<RouteEndpointDataSource>(Assert.Single(endpointRouteBuilder.DataSources));
Microsoft.AspNetCore.StaticAssets (4)
Infrastructure\StaticAssetsEndpointDataSourceHelper.cs (2)
21foreach (var dataSource in builder.DataSources) 43foreach (var dataSource in endpointRouteBuilder.DataSources)
StaticAssetsEndpointRouteBuilderExtensions.cs (1)
75foreach (var ds in endpoints.DataSources)
StaticAssetsManifest.cs (1)
46endpoints.DataSources.Add(dataSource);
RoutingSandbox (1)
Framework\FrameworkEndpointRouteBuilderExtensions.cs (1)
18endpoints.DataSources.Add(dataSource);