15 overrides of Endpoints
IntegrationTestsWebsite (1)
Infrastructure\DynamicEndpointDataSource.cs (1)
18public override IReadOnlyList<Endpoint> Endpoints => _endpoints;
Microsoft.AspNetCore.Components.Endpoints (1)
Builder\RazorComponentEndpointDataSource.cs (1)
69public override IReadOnlyList<Endpoint> Endpoints
Microsoft.AspNetCore.Mvc.Core (1)
Routing\ActionEndpointDataSourceBase.cs (1)
41public override IReadOnlyList<Endpoint> Endpoints
Microsoft.AspNetCore.Routing (4)
CompositeEndpointDataSource.cs (1)
69public override IReadOnlyList<Endpoint> Endpoints
DefaultEndpointDataSource.cs (1)
51public override IReadOnlyList<Endpoint> Endpoints => _endpoints;
RouteEndpointDataSource.cs (1)
87public override IReadOnlyList<RouteEndpoint> Endpoints
RouteGroupBuilder.cs (1)
50public override IReadOnlyList<Endpoint> Endpoints =>
Microsoft.AspNetCore.Routing.FunctionalTests (1)
RouteHandlerTest.cs (1)
121public override IReadOnlyList<Endpoint> Endpoints => Array.Empty<Endpoint>();
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
EndpointRoutingShortCircuitBenchmark.cs (1)
111public override IReadOnlyList<Endpoint> Endpoints => throw new NotImplementedException();
Microsoft.AspNetCore.Routing.Tests (4)
Builder\GroupTest.cs (1)
393public override IReadOnlyList<Endpoint> Endpoints => new[] { new TestCustomEndpoint() };
CompositeEndpointDataSourceTest.cs (2)
512public override IReadOnlyList<Endpoint> Endpoints { get; } 538public override IReadOnlyList<Endpoint> Endpoints => throw _ex;
TestObjects\DynamicEndpointDataSource.cs (1)
27public override IReadOnlyList<Endpoint> Endpoints => _endpoints;
Microsoft.AspNetCore.StaticAssets (1)
StaticAssetEndpointDataSource.cs (1)
65public override IReadOnlyList<Endpoint> Endpoints
RoutingSandbox (1)
Framework\FrameworkEndpointDataSource.cs (1)
29public override IReadOnlyList<Endpoint> Endpoints
193 references to Endpoints
Microsoft.AspNetCore.Authorization.Policy (1)
src\Http\Routing\src\DataSourceDependentCache.cs (1)
57_value = _initializeCore(_dataSource.Endpoints);
Microsoft.AspNetCore.Authorization.Test (1)
AuthorizationMiddlewareTests.cs (1)
227dataSource.Setup(d => d.Endpoints).Returns(new Endpoint[] { endpoint });
Microsoft.AspNetCore.Components.Endpoints.Tests (21)
Builder\RazorComponentsEndpointConventionBuilderExtensionsTest.cs (10)
29Assert.All(endpointBuilder.DataSources.First().Endpoints, e => 53Assert.All(endpointBuilder.DataSources.Skip(1).First().Endpoints, e => 72Assert.All(endpointBuilder.DataSources.Skip(1).First().Endpoints, e => 93Assert.All(endpointBuilder.DataSources.Skip(1).First().Endpoints, e => 115Assert.All(endpointBuilder.DataSources.Skip(1).First().Endpoints, e => 137Assert.All(endpointBuilder.DataSources.Skip(2).First().Endpoints, e => 160Assert.All(endpointBuilder.DataSources.Skip(2).First().Endpoints, e => 186Assert.All(groupEndpoints.Skip(1).First().Endpoints, e => 212Assert.All(groupEndpoints.Skip(1).First().Endpoints, e => 240var endpoints = endpointBuilder.DataSources.Single().Endpoints;
HotReloadServiceTests.cs (9)
50Assert.Single(endpointDataSource.Endpoints, e => e.Metadata.GetMetadata<RootComponentMetadata>() != null)); 67var pageEndpoints = endpointDataSource.Endpoints.Where(e => e.Metadata.GetMetadata<RootComponentMetadata>() != null).ToList(); 84var endpoint = Assert.IsType<RouteEndpoint>(Assert.Single(endpointDataSource.Endpoints, 95var pageEndpoints = endpointDataSource.Endpoints.Where(e => e.Metadata.GetMetadata<RootComponentMetadata>() != null).ToList(); 108var endpoint = Assert.IsType<RouteEndpoint>(Assert.Single(endpointDataSource.Endpoints, e => e.Metadata.GetMetadata<RootComponentMetadata>() != null)); 118var updatedEndpoint = Assert.IsType<RouteEndpoint>(Assert.Single(endpointDataSource.Endpoints, e => e.Metadata.GetMetadata<RootComponentMetadata>() != null)); 134var endpoint = Assert.IsType<RouteEndpoint>(Assert.Single(endpointDataSource.Endpoints, e => e.Metadata.GetMetadata<RootComponentMetadata>() != null)); 145var pageEndpoints = endpointDataSource.Endpoints.Where(e => e.Metadata.GetMetadata<RootComponentMetadata>() != null).ToList(); 183var endpoint = Assert.IsType<RouteEndpoint>(Assert.Single(endpointDataSource.Endpoints, e => e.Metadata.GetMetadata<RootComponentMetadata>() != null));
RazorComponentEndpointDataSourceTest.cs (2)
28var endpoints = endpointDataSource.Endpoints; 41var endpoints = endpointDataSource.Endpoints;
Microsoft.AspNetCore.Components.Server (1)
DependencyInjection\ServerRazorComponentsBuilderExtensions.cs (1)
145foreach (var endpoint in ds.Endpoints)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (1)
JsonTranscodingServiceMethodProviderTests.cs (1)
277return endpointRouteBuilder.DataSources.Single().Endpoints;
Microsoft.AspNetCore.Grpc.Swagger (1)
Internal\GrpcJsonTranscodingDescriptionProvider.cs (1)
37var endpoints = _endpointDataSource.Endpoints;
Microsoft.AspNetCore.Http.Connections.Tests (12)
MapConnectionHandlerTests.cs (12)
47Assert.Collection(dataSource.Endpoints, 84Assert.Collection(dataSource.Endpoints, 111Assert.Collection(dataSource.Endpoints, 139Assert.Collection(dataSource.Endpoints, 170Assert.Collection(dataSource.Endpoints, 199Assert.Collection(dataSource.Endpoints, 229Assert.Collection(dataSource.Endpoints, 261Assert.Collection(dataSource.Endpoints, 299Assert.Collection(dataSource.Endpoints, 335Assert.Collection(dataSource.Endpoints, 369Assert.Collection(dataSource.Endpoints, 417Assert.Collection(dataSource.Endpoints,
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
170var endpoints = dataSource.Endpoints.ToArray();
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
170var endpoints = dataSource.Endpoints.ToArray();
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
EndpointMetadataApiDescriptionProvider.cs (1)
58foreach (var endpoint in _endpointDataSource.Endpoints)
Microsoft.AspNetCore.Mvc.Core (3)
Routing\EndpointRoutingUrlHelper.cs (2)
89private string DebuggerToString() => $"Endpoints = {_endpointDataSource.Endpoints.Count}"; 96public Endpoint[] Items => _helper._endpointDataSource.Endpoints.ToArray();
src\Http\Routing\src\DataSourceDependentCache.cs (1)
57_value = _initializeCore(_dataSource.Endpoints);
Microsoft.AspNetCore.Mvc.Core.Test (13)
ApplicationModels\EndpointMetadataProviderTest.cs (1)
216private List<Endpoint> GetEndpoints(Type controllerType, string actionName) => FilterEndpoints(GetEndpointDataSource(controllerType, actionName).Endpoints);
Builder\MvcApplicationBuilderExtensionsTest.cs (1)
56Assert.Empty(endpointDataSource.Endpoints);
Routing\ActionEndpointDataSourceBaseTest.cs (5)
32var endpoints = dataSource.Endpoints; 55var endpoints1 = dataSource.Endpoints; 56var endpoints2 = dataSource.Endpoints; 93var endpoints = dataSource.Endpoints; 114var newEndpoints = dataSource.Endpoints;
Routing\ControllerActionEndpointDataSourceTest.cs (6)
42var endpoints = dataSource.Endpoints; 87var endpoints = dataSource.Endpoints; 169var endpoints = dataSource.Endpoints; 256var endpoints = dataSource.Endpoints; 338var endpoints = dataSource.Endpoints; 522var endpoints = dataSource.Endpoints;
Microsoft.AspNetCore.Mvc.RazorPages.Test (17)
Builder\PageActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (8)
31Assert.All(endpointBuilder.DataSources.First().Endpoints, e => 52Assert.All(endpointBuilder.DataSources.Skip(1).First().Endpoints, e => 73Assert.All(endpointBuilder.DataSources.Skip(1).First().Endpoints, e => 95Assert.All(endpointBuilder.DataSources.Skip(1).First().Endpoints, e => 118Assert.All(endpointBuilder.DataSources.Skip(2).First().Endpoints, e => 141Assert.All(endpointBuilder.DataSources.Skip(2).First().Endpoints, e => 167Assert.All(groupEndpoints.Skip(1).First().Endpoints, e => 193Assert.All(groupEndpoints.Skip(1).First().Endpoints, e =>
Infrastructure\PageActionEndpointDataSourceTest.cs (4)
43var endpoints = dataSource.Endpoints; 80var endpoints = dataSource.Endpoints; 200var endpoints = dataSource.Endpoints; 248var endpoints = dataSource.Endpoints;
src\Mvc\Mvc.Core\test\Routing\ActionEndpointDataSourceBaseTest.cs (5)
32var endpoints = dataSource.Endpoints; 55var endpoints1 = dataSource.Endpoints; 56var endpoints2 = dataSource.Endpoints; 93var endpoints = dataSource.Endpoints; 114var newEndpoints = dataSource.Endpoints;
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (8)
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (8)
31Assert.All(endpointBuilder.DataSources.First().Endpoints, e => 61Assert.All(endpointBuilder.DataSources.Skip(1).First().Endpoints, e => 91var endpoints = endpointBuilder.DataSources.Skip(1).First().Endpoints; 123Assert.All(endpointBuilder.DataSources.Skip(1).First().Endpoints, e => 155Assert.All(endpointBuilder.DataSources.Skip(2).First().Endpoints, e => 187Assert.All(endpointBuilder.DataSources.Skip(2).First().Endpoints, e => 222Assert.All(groupEndpoints.Skip(1).First().Endpoints, e => 257Assert.All(groupEndpoints.Skip(1).First().Endpoints, e =>
Microsoft.AspNetCore.OpenApi.Tests (6)
Extensions\OpenApiRouteHandlerBuilderExtensionTests.cs (6)
32var endpoint = Assert.Single(dataSource.Endpoints); 55var endpoint = Assert.Single(dataSource.Endpoints); 82var endpoint = Assert.Single(dataSource.Endpoints); 114Assert.Collection(groupDataSource.Endpoints, 137var endpoint = Assert.Single(groupDataSource.Endpoints); 175var endpoint = Assert.Single(groupDataSource.Endpoints);
Microsoft.AspNetCore.Routing (5)
CompositeEndpointDataSource.cs (1)
269endpoints.AddRange(dataSource.Endpoints);
DataSourceDependentCache.cs (1)
57_value = _initializeCore(_dataSource.Endpoints);
DefaultLinkGenerator.cs (1)
327private IReadOnlyList<Endpoint> Endpoints => _serviceProvider.GetRequiredService<EndpointDataSource>().Endpoints;
EndpointDataSource.cs (1)
38var endpoints = Endpoints;
Internal\DfaGraphWriter.cs (1)
44var endpoints = dataSource.Endpoints;
Microsoft.AspNetCore.Routing.Tests (81)
Builder\EndpointRoutingApplicationBuilderExtensionsTest.cs (7)
213Assert.Collection(matcherEndpointDataSources[0].Endpoints, 217Assert.Collection(matcherEndpointDataSources[1].Endpoints, 224Assert.Collection(compositeEndpointBuilder.Endpoints, 279Assert.Collection(matcherEndpointDataSources[1].Endpoints, // app.UseRouter 283Assert.Collection(matcherEndpointDataSources[0].Endpoints, // b.UseRouter 290Assert.Collection(compositeEndpointBuilder.Endpoints, 320Assert.Collection(endpointDataSource.Endpoints,
Builder\FallbackEndpointRouteBuilderExtensionsTest.cs (2)
26var endpoint = Assert.Single(dataSource.Endpoints); 42var endpoint = Assert.Single(dataSource.Endpoints);
Builder\GroupTest.cs (12)
34var endpoint = Assert.Single(dataSource.Endpoints); 66var endpoint = Assert.Single(dataSource.Endpoints); 100var endpoint = Assert.Single(dataSource.Endpoints); 173Assert.Single(dataSource.Endpoints); 196Assert.Single(dataSource.Endpoints); 222var endpoint = Assert.Single(dataSource.Endpoints); 250var endpoint = Assert.Single(dataSource.Endpoints); 286var endpoint = Assert.Single(dataSource.Endpoints); 309var ex = Assert.Throws<NotSupportedException>(() => dataSource.Endpoints); 329var endpoint = Assert.Single(dataSource.Endpoints); 346Assert.Collection(dataSource.Endpoints.OfType<RouteEndpoint>(), 382var prefixedEndpoint = Assert.IsType<RouteEndpoint>(Assert.Single(groupDataSource.Endpoints));
Builder\RequestDelegateEndpointRouteBuilderExtensionsTest.cs (15)
99var endpoint = Assert.Single(dataSource.Endpoints); // Triggers build and construction of delegate 133var endpoint = Assert.Single(dataSource.Endpoints); 161var endpoint = Assert.Single(dataSource.Endpoints); 212var endpoint = Assert.Single(dataSource.Endpoints); 247var endpoint = Assert.Single(dataSource.Endpoints); 281var endpoint = Assert.Single(dataSource.Endpoints); 341var endpoint = Assert.Single(dataSource.Endpoints); 410var endpoint = Assert.Single(dataSource.Endpoints); 442_ = ds.Endpoints; 443_ = ds.Endpoints; 444_ = ds.Endpoints; 446Assert.Single(ds.Endpoints); 447var endpoint = ds.Endpoints.Single(); 465var endpoint = Assert.Single(ds.Endpoints); 485var endpoint = Assert.Single(ds.Endpoints);
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (41)
78var endpoint = Assert.Single(dataSource.Endpoints); 100var endpoint = Assert.Single(dataSource.Endpoints); 120var endpoint = Assert.Single(dataSource.Endpoints); 146var endpoint = Assert.Single(dataSource.Endpoints); 184var endpoint = Assert.Single(dataSource.Endpoints); 216var ex = Assert.Throws<InvalidOperationException>(() => dataSource.Endpoints); 227var ex = Assert.Throws<InvalidOperationException>(() => dataSource.Endpoints); 255var ex = Assert.Throws<InvalidOperationException>(() => dataSource.Endpoints); 268var endpoint = Assert.Single(dataSource.Endpoints); 288var endpoint = Assert.Single(dataSource.Endpoints); 308var endpoint = Assert.Single(dataSource.Endpoints); 332var endpoint = Assert.Single(dataSource.Endpoints); 352var endpoint = Assert.Single(dataSource.Endpoints); 372var endpoint = Assert.Single(dataSource.Endpoints); 396var endpoint = Assert.Single(dataSource.Endpoints); 416var endpoint = Assert.Single(dataSource.Endpoints); 436var endpoint = Assert.Single(dataSource.Endpoints); 459_ = dataSource.Endpoints; 460_ = dataSource.Endpoints; 461_ = dataSource.Endpoints; 463var endpoint = Assert.Single(dataSource.Endpoints); 489var endpoint = Assert.Single(dataSource.Endpoints); 519var endpoint = Assert.Single(dataSource.Endpoints); 561var endpoint = Assert.Single(dataSource.Endpoints); 596var ex = Assert.Throws<InvalidOperationException>(() => dataSource.Endpoints); 611var endpoint = Assert.Single(dataSource.Endpoints); 634var endpoint = Assert.Single(dataSource.Endpoints); 654var ex = Assert.Throws<InvalidOperationException>(() => dataSource.Endpoints); 666var endpoint = Assert.Single(dataSource.Endpoints); 686var endpoint = Assert.Single(dataSource.Endpoints); 704var endpoint = Assert.Single(dataSource.Endpoints); 724var endpoint = Assert.Single(dataSource.Endpoints); 744var endpoint = Assert.Single(dataSource.Endpoints); 760var endpoint = Assert.Single(dataSource.Endpoints); 780var endpoint = Assert.Single(dataSource.Endpoints); 795var endpoint = Assert.Single(dataSource.Endpoints); 818var endpoint = Assert.Single(dataSource.Endpoints); 845var endpoint = Assert.Single(dataSource.Endpoints); 924var endpoint = Assert.Single(dataSource.Endpoints); 969var endpoint = Assert.Single(dataSource.Endpoints); 1009Assert.Single(dataSource.Endpoints);
DefaultLinkGeneratorTest.cs (1)
745return _dataSource.Endpoints.Where(e => e.Metadata.GetMetadata<IntMetadata>().Value == address);
DefaultLinkParserTest.cs (1)
174return _dataSource.Endpoints.Where(e => e.Metadata.GetMetadata<IntMetadata>().Value == address);
RouteOptionsTests.cs (2)
47var result = Assert.Single(endpointDataSource.Endpoints); 54Assert.Collection(endpointDataSource.Endpoints,
Microsoft.AspNetCore.SignalR.Tests (9)
MapSignalRTests.cs (9)
86Assert.Collection(dataSource.Endpoints, 119Assert.Collection(dataSource.Endpoints, 158Assert.Collection(dataSource.Endpoints, 187Assert.Collection(dataSource.Endpoints, 216Assert.Collection(dataSource.Endpoints, 248Assert.Collection(dataSource.Endpoints, 280Assert.Collection(dataSource.Endpoints, 319Assert.Collection(dataSource.Endpoints, 350Assert.Collection(dataSource.Endpoints,
Microsoft.AspNetCore.Tests (8)
WebApplicationTests.cs (8)
1598var newEndpoint = Assert.Single(endpointDataSource.Endpoints); 1875Assert.Equal(3, ds.Endpoints.Count); 1876Assert.Equal("One", ds.Endpoints[0].DisplayName); 1877Assert.Equal("Two", ds.Endpoints[1].DisplayName); 1878Assert.Equal("Three", ds.Endpoints[2].DisplayName); 1935Assert.Single(ds.Endpoints); 1936Assert.Equal("One", ds.Endpoints[0].DisplayName); 1990var displayNames = ds.Endpoints.Select(e => e.DisplayName).ToArray();
RoutingSandbox (1)
UseEndpointRoutingStartup.cs (1)
39foreach (var endpoint in dataSource.Endpoints.OfType<RouteEndpoint>().OrderBy(e => e.RoutePattern.RawText, StringComparer.OrdinalIgnoreCase))
RoutingWebSite (1)
UseEndpointRoutingStartup.cs (1)
45foreach (var endpoint in dataSource.Endpoints.OfType<RouteEndpoint>().OrderBy(e => e.RoutePattern.RawText, StringComparer.OrdinalIgnoreCase))