7 types derived from EndpointDataSource
Microsoft.AspNetCore.Components.Endpoints (1)
Builder\RazorComponentEndpointDataSource.cs (1)
18internal class RazorComponentEndpointDataSource<[DynamicallyAccessedMembers(Component)] TRootComponent> : EndpointDataSource
Microsoft.AspNetCore.Mvc.Core (1)
Routing\ActionEndpointDataSourceBase.cs (1)
15internal abstract class ActionEndpointDataSourceBase : EndpointDataSource, IDisposable
Microsoft.AspNetCore.Routing (4)
CompositeEndpointDataSource.cs (1)
17public sealed class CompositeEndpointDataSource : EndpointDataSource, IDisposable
DefaultEndpointDataSource.cs (1)
15public sealed class DefaultEndpointDataSource : EndpointDataSource
RouteEndpointDataSource.cs (1)
21internal sealed class RouteEndpointDataSource : EndpointDataSource
RouteGroupBuilder.cs (1)
40private sealed class GroupEndpointDataSource : EndpointDataSource, IDisposable
Microsoft.AspNetCore.StaticAssets (1)
StaticAssetEndpointDataSource.cs (1)
16internal class StaticAssetsEndpointDataSource : EndpointDataSource
83 references to EndpointDataSource
Microsoft.AspNetCore (5)
WebApplication.cs (5)
30private readonly List<EndpointDataSource> _dataSources = new(); 83internal ICollection<EndpointDataSource> DataSources => _dataSources; 84ICollection<EndpointDataSource> IEndpointRouteBuilder.DataSources => DataSources; 275var dataSource = _webApplication.Services.GetRequiredService<EndpointDataSource>();
Microsoft.AspNetCore.Authorization.Policy (3)
AuthorizationPolicyCache.cs (1)
15public AuthorizationPolicyCache(EndpointDataSource dataSource)
src\aspnetcore\src\Http\Routing\src\DataSourceDependentCache.cs (2)
15private readonly EndpointDataSource _dataSource; 27public DataSourceDependentCache(EndpointDataSource dataSource, Func<IReadOnlyList<Endpoint>, T> initialize)
Microsoft.AspNetCore.Components.Server (3)
DependencyInjection\ServerRazorComponentsBuilderExtensions.cs (3)
137public ICollection<EndpointDataSource> DataSources { get; } = new List<EndpointDataSource>() { }; 146foreach (var ds in DataSources)
Microsoft.AspNetCore.Mvc.ApiExplorer (2)
EndpointMetadataApiDescriptionProvider.cs (2)
24private readonly EndpointDataSource _endpointDataSource; 33EndpointDataSource endpointDataSource,
Microsoft.AspNetCore.Mvc.Core (10)
Routing\DynamicControllerEndpointSelector.cs (1)
14public DynamicControllerEndpointSelector(EndpointDataSource dataSource)
Routing\DynamicControllerEndpointSelectorCache.cs (3)
14private readonly ConcurrentDictionary<int, EndpointDataSource> _dataSourceCache = new(); 23internal void AddDataSource(EndpointDataSource dataSource, int key) => 34if (!_dataSourceCache.TryGetValue(key, out var dataSource))
Routing\EndpointRoutingUrlHelper.cs (2)
19private readonly EndpointDataSource _endpointDataSource; 25EndpointDataSource endpointDataSource)
Routing\UrlHelperFactory.cs (2)
48var endpointDataSource = services.GetRequiredService<EndpointDataSource>();
src\aspnetcore\src\Http\Routing\src\DataSourceDependentCache.cs (2)
15private readonly EndpointDataSource _dataSource; 27public DataSourceDependentCache(EndpointDataSource dataSource, Func<IReadOnlyList<Endpoint>, T> initialize)
Microsoft.AspNetCore.Mvc.RazorPages (5)
Infrastructure\DynamicPageEndpointSelector.cs (2)
12private readonly EndpointDataSource _dataSource; 15public DynamicPageEndpointSelector(EndpointDataSource dataSource)
Infrastructure\DynamicPageEndpointSelectorCache.cs (3)
15private readonly ConcurrentDictionary<int, EndpointDataSource> _dataSourceCache = new(); 24internal void AddDataSource(EndpointDataSource dataSource, int key) => 41if (!_dataSourceCache.TryGetValue(key, out var dataSource))
Microsoft.AspNetCore.Routing (51)
Builder\EndpointRouteBuilderExtensions.cs (1)
446foreach (var dataSource in endpoints.DataSources)
Builder\EndpointRoutingApplicationBuilderExtensions.cs (2)
66/// <see cref="EndpointDataSource"/> instances built from the configured <see cref="IEndpointRouteBuilder"/>. 102foreach (var dataSource in endpointRouteBuilder.DataSources)
CompositeEndpointDataSource.cs (15)
14/// Represents an <see cref="EndpointDataSource"/> whose values come from a collection of <see cref="EndpointDataSource"/> instances. 20private readonly ICollection<EndpointDataSource> _dataSources; 28internal CompositeEndpointDataSource(ObservableCollection<EndpointDataSource> dataSources) 37/// <param name="endpointDataSources">An collection of <see cref="EndpointDataSource" /> objects.</param> 39public CompositeEndpointDataSource(IEnumerable<EndpointDataSource> endpointDataSources) 41_dataSources = new List<EndpointDataSource>(); 43foreach (var dataSource in endpointDataSources) 52/// Returns the collection of <see cref="EndpointDataSource"/> instances associated with the object. 54public IEnumerable<EndpointDataSource> DataSources => _dataSources; 91foreach (var dataSource in _dataSources) 112if (_dataSources is ObservableCollection<EndpointDataSource> observableDataSources) 117foreach (var dataSource in _dataSources) 250foreach (var dataSource in _dataSources) 267foreach (var dataSource in _dataSources)
ConfigureRouteOptions.cs (2)
11private readonly ICollection<EndpointDataSource> _dataSources; 13public ConfigureRouteOptions(ICollection<EndpointDataSource> dataSources)
DataSourceDependentCache.cs (2)
15private readonly EndpointDataSource _dataSource; 27public DataSourceDependentCache(EndpointDataSource dataSource, Func<IReadOnlyList<Endpoint>, T> initialize)
DefaultEndpointRouteBuilder.cs (2)
13DataSources = new List<EndpointDataSource>(); 20public ICollection<EndpointDataSource> DataSources { get; }
DefaultLinkGenerator.cs (2)
40EndpointDataSource dataSource, 327private IReadOnlyList<Endpoint> Endpoints => _serviceProvider.GetRequiredService<EndpointDataSource>().Endpoints;
DefaultLinkParser.cs (1)
27EndpointDataSource dataSource,
DependencyInjection\RoutingServiceCollectionExtensions.cs (2)
70var dataSources = new ObservableCollection<EndpointDataSource>(); 75services.TryAddSingleton<EndpointDataSource>(s =>
EndpointDataSource.cs (1)
29/// Get the <see cref="Endpoint"/> instances for this <see cref="EndpointDataSource"/> given the specified <see cref="RouteGroupContext.Prefix"/> and <see cref="RouteGroupContext.Conventions"/>.
EndpointNameAddressScheme.cs (1)
14public EndpointNameAddressScheme(EndpointDataSource dataSource)
EndpointRoutingMiddleware.cs (2)
27private readonly EndpointDataSource _endpointDataSource; 38EndpointDataSource rootCompositeEndpointDataSource,
IEndpointRouteBuilder.cs (1)
28ICollection<EndpointDataSource> DataSources { get; }
Internal\DfaGraphWriter.cs (2)
38/// <param name="dataSource">The <see cref="EndpointDataSource"/> to extract routes from.</param> 40public void Write(EndpointDataSource dataSource, TextWriter writer)
Matching\DataSourceDependentMatcher.cs (1)
16EndpointDataSource dataSource,
Matching\DfaMatcherFactory.cs (1)
21public override Matcher CreateMatcher(EndpointDataSource dataSource)
Matching\MatcherFactory.cs (1)
8public abstract Matcher CreateMatcher(EndpointDataSource dataSource);
RouteGroupBuilder.cs (4)
23private readonly List<EndpointDataSource> _dataSources = new(); 36ICollection<EndpointDataSource> IEndpointRouteBuilder.DataSources => _dataSources; 82foreach (var dataSource in _routeGroupBuilder._dataSources) 111foreach (var dataSource in _routeGroupBuilder._dataSources)
RouteGroupContext.cs (4)
10/// Represents the information accessible to <see cref="EndpointDataSource.GetGroupedEndpoints(RouteGroupContext)"/>. 16/// returned by the call to <see cref="EndpointDataSource.GetGroupedEndpoints(RouteGroupContext)"/>. This accounts for nested groups and gives the full group prefix 24/// returned from <see cref="EndpointDataSource.GetGroupedEndpoints(RouteGroupContext)"/>. 31/// returned from <see cref="EndpointDataSource.GetGroupedEndpoints(RouteGroupContext)"/>.
RouteOptions.cs (3)
25private ICollection<EndpointDataSource> _endpointDataSources = default!; 28/// Gets a collection of <see cref="EndpointDataSource"/> instances configured with routing. 30internal ICollection<EndpointDataSource> EndpointDataSources
RouteValuesAddressScheme.cs (1)
15public RouteValuesAddressScheme(EndpointDataSource dataSource)
Microsoft.AspNetCore.StaticAssets (4)
Infrastructure\StaticAssetsEndpointDataSourceHelper.cs (2)
21foreach (var dataSource in builder.DataSources) 43foreach (var dataSource in endpointRouteBuilder.DataSources)
StaticAssetEndpointDataSource.cs (1)
13/// An <see cref="EndpointDataSource"/> for static assets.
StaticAssetsEndpointRouteBuilderExtensions.cs (1)
75foreach (var ds in endpoints.DataSources)