15 types derived from EndpointDataSource
IntegrationTestsWebsite (1)
Infrastructure\DynamicEndpointDataSource.cs (1)
12public class DynamicEndpointDataSource : 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)
15internal sealed class RouteEndpointDataSource : EndpointDataSource
RouteGroupBuilder.cs (1)
40private sealed class GroupEndpointDataSource : EndpointDataSource, IDisposable
Microsoft.AspNetCore.Routing.FunctionalTests (1)
RouteHandlerTest.cs (1)
117private class TestDisposeEndpointDataSource : EndpointDataSource, IDisposable
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
EndpointRoutingShortCircuitBenchmark.cs (1)
109internal class BenchmarkEndpointDataSource : EndpointDataSource
Microsoft.AspNetCore.Routing.Tests (4)
Builder\GroupTest.cs (1)
391private sealed class TestCustomEndpintDataSource : EndpointDataSource
CompositeEndpointDataSourceTest.cs (2)
508private class TestGroupDataSource : EndpointDataSource 529private class EndpointThrowingDataSource : EndpointDataSource
TestObjects\DynamicEndpointDataSource.cs (1)
9public class DynamicEndpointDataSource : EndpointDataSource
Microsoft.AspNetCore.StaticAssets (1)
StaticAssetEndpointDataSource.cs (1)
16internal class StaticAssetsEndpointDataSource : EndpointDataSource
RoutingSandbox (1)
Framework\FrameworkEndpointDataSource.cs (1)
10internal class FrameworkEndpointDataSource : EndpointDataSource, IEndpointConventionBuilder
290 references to EndpointDataSource
Microsoft.AspNetCore (4)
WebApplication.cs (4)
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\Http\Routing\src\DataSourceDependentCache.cs (2)
15private readonly EndpointDataSource _dataSource; 27public DataSourceDependentCache(EndpointDataSource dataSource, Func<IReadOnlyList<Endpoint>, T> initialize)
Microsoft.AspNetCore.Authorization.Test (2)
AuthorizationMiddlewareTests.cs (2)
224private static EndpointDataSource CreateDataSource(Endpoint endpoint) 226var dataSource = new Mock<EndpointDataSource>();
Microsoft.AspNetCore.Components.Endpoints.Tests (5)
Builder\RazorComponentsEndpointConventionBuilderExtensionsTest.cs (1)
280public ICollection<EndpointDataSource> DataSources { get; } = [];
HotReloadServiceTests.cs (2)
294private List<EndpointDataSource> _dataSources = new(); 300public ICollection<EndpointDataSource> DataSources => _dataSources;
RazorComponentEndpointDataSourceTest.cs (2)
310private List<EndpointDataSource> _dataSources = new(); 316public ICollection<EndpointDataSource> DataSources => _dataSources;
Microsoft.AspNetCore.Components.Server (3)
DependencyInjection\ServerRazorComponentsBuilderExtensions.cs (3)
134public ICollection<EndpointDataSource> DataSources { get; } = new List<EndpointDataSource>() { }; 143foreach (var ds in DataSources)
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
WebAssemblyEndpointProvider.cs (1)
57public ICollection<EndpointDataSource> DataSources { get; } = [];
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (2)
JsonTranscodingServiceMethodProviderTests.cs (2)
246public ICollection<EndpointDataSource> DataSources { get; } 251DataSources = new List<EndpointDataSource>();
Microsoft.AspNetCore.Grpc.Swagger (2)
Internal\GrpcJsonTranscodingDescriptionProvider.cs (2)
23private readonly EndpointDataSource _endpointDataSource; 26public GrpcJsonTranscodingDescriptionProvider(EndpointDataSource endpointDataSource, DescriptorRegistry descriptorRegistry)
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
MapPathMiddlewareTests.cs (1)
258public ICollection<EndpointDataSource> DataSources => throw new NotImplementedException();
Microsoft.AspNetCore.Http.Connections.Tests (24)
MapConnectionHandlerTests.cs (24)
45var dataSource = host.Services.GetRequiredService<EndpointDataSource>(); 82var dataSource = host.Services.GetRequiredService<EndpointDataSource>(); 109var dataSource = host.Services.GetRequiredService<EndpointDataSource>(); 137var dataSource = host.Services.GetRequiredService<EndpointDataSource>(); 168var dataSource = host.Services.GetRequiredService<EndpointDataSource>(); 197var dataSource = host.Services.GetRequiredService<EndpointDataSource>(); 227var dataSource = host.Services.GetRequiredService<EndpointDataSource>(); 259var dataSource = host.Services.GetRequiredService<EndpointDataSource>(); 297var dataSource = host.Services.GetRequiredService<EndpointDataSource>(); 333var dataSource = host.Services.GetRequiredService<EndpointDataSource>(); 367var dataSource = host.Services.GetRequiredService<EndpointDataSource>(); 415var dataSource = host.Services.GetRequiredService<EndpointDataSource>();
Microsoft.AspNetCore.Http.Extensions.Tests (3)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (3)
167var dataSource = Assert.Single(builder.DataSources); 475DataSources = new List<EndpointDataSource>(); 482public ICollection<EndpointDataSource> DataSources { get; }
Microsoft.AspNetCore.Http.Microbenchmarks (3)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (3)
167var dataSource = Assert.Single(builder.DataSources); 475DataSources = new List<EndpointDataSource>(); 482public ICollection<EndpointDataSource> DataSources { get; }
Microsoft.AspNetCore.Mvc.ApiExplorer (2)
EndpointMetadataApiDescriptionProvider.cs (2)
24private readonly EndpointDataSource _endpointDataSource; 33EndpointDataSource endpointDataSource,
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (43)
EndpointMetadataApiDescriptionProviderTest.cs (43)
838var endpointDataSource = builder.DataSources.OfType<EndpointDataSource>().Single(); 863var endpointDataSource = builder.DataSources.OfType<EndpointDataSource>().Single(); 888var endpointDataSource = builder.DataSources.OfType<EndpointDataSource>().Single(); 914var endpointDataSource = builder.DataSources.OfType<EndpointDataSource>().Single(); 964var endpointDataSource = builder.DataSources.OfType<EndpointDataSource>().Single(); 1001var endpointDataSource = builder.DataSources.OfType<EndpointDataSource>().Single(); 1035var endpointDataSource = builder.DataSources.OfType<EndpointDataSource>().Single(); 1064var endpointDataSource = builder.DataSources.OfType<EndpointDataSource>().Single(); 1094var endpointDataSource = builder.DataSources.OfType<EndpointDataSource>().Single(); 1126var endpointDataSource = builder.DataSources.OfType<EndpointDataSource>().Single(); 1158var endpointDataSource = builder.DataSources.OfType<EndpointDataSource>().Single(); 1190var endpointDataSource = builder.DataSources.OfType<EndpointDataSource>().Single(); 1219var endpointDataSource = builder.DataSources.OfType<EndpointDataSource>().Single(); 1248var endpointDataSource = builder.DataSources.OfType<EndpointDataSource>().Single(); 1336var endpointDataSource = builder.DataSources.OfType<EndpointDataSource>().Single(); 1365var endpointDataSource = builder.DataSources.OfType<EndpointDataSource>().Single(); 1405var endpointDataSource = builder.DataSources.OfType<EndpointDataSource>().Single(); 1434var endpointDataSource = builder.DataSources.OfType<EndpointDataSource>().Single(); 1465var endpointDataSource = builder.DataSources.OfType<EndpointDataSource>().Single(); 1499var endpointDataSource = builder.DataSources.OfType<EndpointDataSource>().Single(); 1566private static EndpointMetadataApiDescriptionProvider CreateEndpointMetadataApiDescriptionProvider(EndpointDataSource endpointDataSource) => new EndpointMetadataApiDescriptionProvider( 1620DataSources = new List<EndpointDataSource>(); 1627public ICollection<EndpointDataSource> DataSources { get; }
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\Http\Routing\src\DataSourceDependentCache.cs (2)
15private readonly EndpointDataSource _dataSource; 27public DataSourceDependentCache(EndpointDataSource dataSource, Func<IReadOnlyList<Endpoint>, T> initialize)
Microsoft.AspNetCore.Mvc.Core.Test (6)
Builder\MvcApplicationBuilderExtensionsTest.cs (2)
53var endpointDataSource = appBuilder.ApplicationServices 54.GetRequiredService<EndpointDataSource>();
Routing\ControllerLinkGeneratorExtensionsTest.cs (1)
220services.TryAddEnumerable(ServiceDescriptor.Singleton<EndpointDataSource>(new DefaultEndpointDataSource(endpoints)));
Routing\DynamicControllerEndpointMatcherPolicyTest.cs (1)
439public TestDynamicControllerEndpointSelectorCache(EndpointDataSource dataSource, int key)
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 (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.Mvc.RazorPages.Test (2)
Builder\PageActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (1)
232public ICollection<EndpointDataSource> DataSources { get; } = [];
Infrastructure\DynamicPageEndpointMatcherPolicyTest.cs (1)
439public TestDynamicPageEndpointSelectorCache(EndpointDataSource dataSource)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (1)
305public ICollection<EndpointDataSource> DataSources { get; } = [];
Microsoft.AspNetCore.OpenApi.Tests (8)
Extensions\OpenApiRouteHandlerBuilderExtensionTests.cs (3)
112var groupDataSource = Assert.Single(builder.DataSources); 136var groupDataSource = Assert.Single(builder.DataSources); 174var groupDataSource = Assert.Single(builder.DataSources);
Services\OpenApiDocumentServiceTestsBase.cs (5)
116var endpointDataSource = builder.DataSources.OfType<EndpointDataSource>().Single(); 148private static EndpointMetadataApiDescriptionProvider CreateEndpointMetadataApiDescriptionProvider(EndpointDataSource endpointDataSource) 172DataSources = new List<EndpointDataSource>(); 179public ICollection<EndpointDataSource> DataSources { get; }
Microsoft.AspNetCore.Routing (51)
Builder\EndpointRouteBuilderExtensions.cs (1)
446foreach (var dataSource in endpoints.DataSources)
Builder\EndpointRoutingApplicationBuilderExtensions.cs (2)
67/// with the <see cref="EndpointDataSource"/> instances built from configured <see cref="IEndpointRouteBuilder"/>. 105foreach (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.Routing.Microbenchmarks (4)
EndpointRoutingBenchmarkBase.cs (1)
35ServiceDescriptor.Singleton<EndpointDataSource>(new DefaultEndpointDataSource(Endpoints)));
EndpointRoutingShortCircuitBenchmark.cs (3)
76public override Matcher CreateMatcher(EndpointDataSource dataSource) 102public ICollection<EndpointDataSource> DataSources => new List<EndpointDataSource>();
Microsoft.AspNetCore.Routing.Tests (65)
Builder\EndpointRoutingApplicationBuilderExtensionsTest.cs (12)
175var matcherEndpointDataSources = new List<EndpointDataSource>(); 178.Setup(m => m.CreateMatcher(It.IsAny<EndpointDataSource>())) 179.Callback((EndpointDataSource arg) => 221var compositeEndpointBuilder = services.GetRequiredService<EndpointDataSource>(); 236var matcherEndpointDataSources = new List<EndpointDataSource>(); 239.Setup(m => m.CreateMatcher(It.IsAny<EndpointDataSource>())) 240.Callback((EndpointDataSource arg) => 287var compositeEndpointBuilder = services.GetRequiredService<EndpointDataSource>(); 306mockRouteBuilder.Setup(m => m.DataSources).Returns(new List<EndpointDataSource>()); 319var endpointDataSource = Assert.Single(mockRouteBuilder.Object.DataSources);
Builder\FallbackEndpointRouteBuilderExtensionsTest.cs (3)
13private EndpointDataSource GetBuilderEndpointDataSource(IEndpointRouteBuilder endpointRouteBuilder) => 25var dataSource = GetBuilderEndpointDataSource(builder); 41var dataSource = GetBuilderEndpointDataSource(builder);
Builder\GroupTest.cs (14)
17private EndpointDataSource GetEndpointDataSource(IEndpointRouteBuilder endpointRouteBuilder) 19return Assert.IsAssignableFrom<EndpointDataSource>(Assert.Single(endpointRouteBuilder.DataSources)); 33var dataSource = GetEndpointDataSource(builder); 65var dataSource = GetEndpointDataSource(builder); 99var dataSource = GetEndpointDataSource(builder); 172var dataSource = GetEndpointDataSource(builder); 195var dataSource = GetEndpointDataSource(builder); 221var dataSource = GetEndpointDataSource(builder); 249var dataSource = GetEndpointDataSource(builder); 285var dataSource = GetEndpointDataSource(builder); 308var dataSource = GetEndpointDataSource(builder); 328var dataSource = GetEndpointDataSource(builder); 345var dataSource = GetEndpointDataSource(builder); 370var groupDataSource = GetEndpointDataSource(builder);
Builder\RequestDelegateEndpointRouteBuilderExtensionsTest.cs (12)
20private EndpointDataSource GetBuilderEndpointDataSource(IEndpointRouteBuilder endpointRouteBuilder) => 98var dataSource = GetBuilderEndpointDataSource(builder); 132var dataSource = GetBuilderEndpointDataSource(builder); 160var dataSource = GetBuilderEndpointDataSource(builder); 211var dataSource = GetBuilderEndpointDataSource(builder); 246var dataSource = GetBuilderEndpointDataSource(builder); 280var dataSource = GetBuilderEndpointDataSource(builder); 340var dataSource = GetBuilderEndpointDataSource(builder); 409var dataSource = Assert.Single(builder.DataSources); 440var ds = GetBuilderEndpointDataSource(builder); 463var ds = GetBuilderEndpointDataSource(builder); 484var ds = GetBuilderEndpointDataSource(builder);
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (1)
77var dataSource = Assert.Single(builder.DataSources);
CompositeEndpointDataSourceTest.cs (2)
202var observableCollection = new ObservableCollection<EndpointDataSource> { dataSource1 }; 238var observableCollection = new ObservableCollection<EndpointDataSource> { dataSource1 };
DefaultLinkGeneratorTest.cs (2)
736private readonly EndpointDataSource _dataSource; 738public IntAddressScheme(EndpointDataSource dataSource)
DefaultLinkParserTest.cs (2)
165private readonly EndpointDataSource _dataSource; 167public IntAddressScheme(EndpointDataSource dataSource)
EndpointNameAddressSchemeTest.cs (1)
191private EndpointNameAddressScheme CreateAddressScheme(params EndpointDataSource[] dataSources)
EndpointRoutingMiddlewareTest.cs (2)
145.Setup(f => f.CreateMatcher(It.IsAny<EndpointDataSource>())) 157.Verify(f => f.CreateMatcher(It.IsAny<EndpointDataSource>()), Times.Exactly(2));
LinkGeneratorTestBase.cs (3)
46private protected DefaultLinkGenerator CreateLinkGenerator(EndpointDataSource[] dataSources) 53EndpointDataSource[] dataSources) 63foreach (var dataSource in dataSources)
LinkParserTestBase.cs (3)
38private protected DefaultLinkParser CreateLinkParser(EndpointDataSource[] dataSources) 45EndpointDataSource[] dataSources) 55foreach (var dataSource in dataSources)
Matching\CandidateSetTest.cs (1)
384var dataSource = new CompositeEndpointDataSource(Array.Empty<EndpointDataSource>());
Matching\DfaMatcherBuilderTest.cs (1)
3502var dataSource = new CompositeEndpointDataSource(Array.Empty<EndpointDataSource>());
Matching\DfaMatcherTest.cs (1)
24EndpointDataSource dataSource,
RouteOptionsTests.cs (2)
41var endpointDataSource = serviceProvider.GetRequiredService<EndpointDataSource>();
RouteValuesAddressSchemeTest.cs (1)
420private RouteValuesAddressScheme CreateAddressScheme(params EndpointDataSource[] dataSources)
TestObjects\TestMatcherFactory.cs (2)
23public override Matcher CreateMatcher(EndpointDataSource dataSource) 42public override Matcher CreateMatcher(EndpointDataSource dataSource)
Microsoft.AspNetCore.SignalR.Tests (18)
MapSignalRTests.cs (18)
84var dataSource = host.Services.GetRequiredService<EndpointDataSource>(); 117var dataSource = host.Services.GetRequiredService<EndpointDataSource>(); 156var dataSource = host.Services.GetRequiredService<EndpointDataSource>(); 185var dataSource = host.Services.GetRequiredService<EndpointDataSource>(); 214var dataSource = host.Services.GetRequiredService<EndpointDataSource>(); 246var dataSource = host.Services.GetRequiredService<EndpointDataSource>(); 278var dataSource = host.Services.GetRequiredService<EndpointDataSource>(); 317var dataSource = host.Services.GetRequiredService<EndpointDataSource>(); 348var dataSource = host.Services.GetRequiredService<EndpointDataSource>();
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)
Microsoft.AspNetCore.Tests (10)
WebApplicationTests.cs (10)
1596var endpointDataSource = app.Services.GetRequiredService<EndpointDataSource>(); 1758Assert.Single(builder.Services.Where(descriptor => descriptor.ServiceType == typeof(EndpointDataSource))); 1776Assert.DoesNotContain(builder.Services, descriptor => descriptor.ServiceType == typeof(EndpointDataSource)); 1874var ds = app.Services.GetRequiredService<EndpointDataSource>(); 1934var ds = app.Services.GetRequiredService<EndpointDataSource>(); 1989var ds = app.Services.GetRequiredService<EndpointDataSource>();
Mvc.RoutingWebSite (2)
Controllers\DebugController.cs (2)
13private readonly EndpointDataSource _endpointDataSource; 15public DebugController(DfaGraphWriter graphWriter, EndpointDataSource endpointDataSource)
RoutingSandbox (4)
UseEndpointRoutingStartup.cs (4)
35var dataSource = httpContext.RequestServices.GetRequiredService<EndpointDataSource>(); 71var dataSource = httpContext.RequestServices.GetRequiredService<EndpointDataSource>();
RoutingWebSite (2)
UseEndpointRoutingStartup.cs (2)
41var dataSource = httpContext.RequestServices.GetRequiredService<EndpointDataSource>();