54 references to Empty
Benchmarks (1)
StartupUsingEndpointRouting.cs (1)
38metadata: EndpointMetadataCollection.Empty,
Microsoft.AspNetCore.Cors.Test (1)
CorsMiddlewareTests.cs (1)
699httpContext.SetEndpoint(new Endpoint(c => Task.CompletedTask, EndpointMetadataCollection.Empty, "Test endpoint"));
Microsoft.AspNetCore.Http.Abstractions (1)
Routing\Endpoint.cs (1)
31Metadata = metadata ?? EndpointMetadataCollection.Empty;
Microsoft.AspNetCore.Http.Abstractions.Tests (6)
EndpointHttpContextExtensionsTests.cs (6)
45var initial = new Endpoint(c => Task.CompletedTask, EndpointMetadataCollection.Empty, "Test endpoint"); 78var endpoint = new Endpoint(c => Task.CompletedTask, EndpointMetadataCollection.Empty, "Test endpoint"); 92var initialEndpoint = new Endpoint(c => Task.CompletedTask, EndpointMetadataCollection.Empty, "Test endpoint"); 100var endpoint = new Endpoint(c => Task.CompletedTask, EndpointMetadataCollection.Empty, "Test endpoint"); 114var initialEndpoint = new Endpoint(c => Task.CompletedTask, EndpointMetadataCollection.Empty, "Test endpoint"); 135var initialEndpoint = new Endpoint(c => Task.CompletedTask, EndpointMetadataCollection.Empty, "Test endpoint");
Microsoft.AspNetCore.Http.Tests (2)
ApplicationBuilderTests.cs (2)
63EndpointMetadataCollection.Empty, 145EndpointMetadataCollection.Empty,
Microsoft.AspNetCore.Mvc.Core.Test (2)
Infrastructure\DefaultApiProblemDetailsWriterTest.cs (1)
127var context = CreateContext(stream, metadata: EndpointMetadataCollection.Empty);
Routing\EndpointRoutingUrlHelperTest.cs (1)
141httpContext.SetEndpoint(new Endpoint(context => Task.CompletedTask, EndpointMetadataCollection.Empty, null));
Microsoft.AspNetCore.Mvc.RazorPages (3)
Infrastructure\DefaultPageLoader.cs (1)
36=> LoadAsync(actionDescriptor, EndpointMetadataCollection.Empty);
Infrastructure\PageActionInvokerProvider.cs (1)
76page.CompiledPageDescriptor = _pageLoader.LoadAsync(page, EndpointMetadataCollection.Empty).GetAwaiter().GetResult();
Infrastructure\PageLoader.cs (1)
33=> LoadAsync(actionDescriptor, EndpointMetadataCollection.Empty).GetAwaiter().GetResult();
Microsoft.AspNetCore.Mvc.RazorPages.Test (11)
Infrastructure\DefaultPageLoaderTest.cs (7)
94var result = await loader.LoadAsync(new PageActionDescriptor(), EndpointMetadataCollection.Empty); 148var result = await loader.LoadAsync(descriptor, EndpointMetadataCollection.Empty); 211var result = await loader.LoadAsync(new PageActionDescriptor(), EndpointMetadataCollection.Empty); 265var result1 = await loader.LoadAsync(descriptor, EndpointMetadataCollection.Empty); 266var result2 = await loader.LoadAsync(descriptor, EndpointMetadataCollection.Empty); 325var result1 = await loader.LoadAsync(descriptor, EndpointMetadataCollection.Empty); 326var result2 = await loader.LoadAsync(descriptor2, EndpointMetadataCollection.Empty);
Infrastructure\DynamicPageEndpointMatcherPolicyTest.cs (3)
72new Endpoint(_ => Task.CompletedTask, EndpointMetadataCollection.Empty, "Test1"), 73new Endpoint(_ => Task.CompletedTask, EndpointMetadataCollection.Empty, "Test2"), 74new Endpoint(_ => Task.CompletedTask, EndpointMetadataCollection.Empty, "ReplacedLoaded")
Infrastructure\PageActionInvokerProviderTest.cs (1)
286loader.Setup(l => l.LoadAsync(descriptor, EndpointMetadataCollection.Empty))
Microsoft.AspNetCore.Routing (3)
Matching\AcceptsMatcherPolicy.cs (1)
256EndpointMetadataCollection.Empty,
Matching\HttpMethodMatcherPolicy.cs (1)
392EndpointMetadataCollection.Empty,
Matching\NegotiationMatcherPolicy.cs (1)
326EndpointMetadataCollection.Empty,
Microsoft.AspNetCore.Routing.Tests (23)
Builder\EndpointRoutingApplicationBuilderExtensionsTest.cs (1)
83EndpointMetadataCollection.Empty,
CompositeEndpointDataSourceTest.cs (1)
504metadata ?? EndpointMetadataCollection.Empty,
DefaultEndpointDataSourceTests.cs (8)
15new Endpoint(TestConstants.EmptyRequestDelegate, EndpointMetadataCollection.Empty, "1"), 16new Endpoint(TestConstants.EmptyRequestDelegate, EndpointMetadataCollection.Empty, "2") 29var endpoint1 = new Endpoint(TestConstants.EmptyRequestDelegate, EndpointMetadataCollection.Empty, "1"); 30var endpoint2 = new Endpoint(TestConstants.EmptyRequestDelegate, EndpointMetadataCollection.Empty, "2"); 59new Endpoint(TestConstants.EmptyRequestDelegate, EndpointMetadataCollection.Empty, "1"), 60new Endpoint(TestConstants.EmptyRequestDelegate, EndpointMetadataCollection.Empty, "2") 73var endpoint1 = new Endpoint(TestConstants.EmptyRequestDelegate, EndpointMetadataCollection.Empty, "1"); 74var endpoint2 = new Endpoint(TestConstants.EmptyRequestDelegate, EndpointMetadataCollection.Empty, "2");
EndpointMiddlewareTest.cs (1)
79httpContext.SetEndpoint(new Endpoint(endpointFunc, EndpointMetadataCollection.Empty, "Test"));
Internal\DfaGraphWriterTest.cs (1)
27var endpointsDataSource = new DefaultEndpointDataSource(new Endpoint((context) => null, EndpointMetadataCollection.Empty, string.Empty));
Matching\DataSourceDependentMatcherTest.cs (3)
41EndpointMetadataCollection.Empty, 66EndpointMetadataCollection.Empty, 85var endpoint = new Endpoint(TestConstants.EmptyRequestDelegate, EndpointMetadataCollection.Empty, "test");
Matching\DefaultEndpointSelectorTest.cs (1)
181EndpointMetadataCollection.Empty,
Matching\DfaMatcherBuilderTest.cs (1)
3676var maxValueEndpoint = new Endpoint(TestConstants.EmptyRequestDelegate, EndpointMetadataCollection.Empty, "MaxValueEndpoint");
Matching\HttpMethodMatcherPolicyTest.cs (1)
172Assert.Equal(EndpointMetadataCollection.Empty, httpContext.GetEndpoint().Metadata);
Matching\MatcherConformanceTest.cs (1)
41EndpointMetadataCollection.Empty,
RouteOptionsTests.cs (2)
37var endpoint1 = new Endpoint((c) => Task.CompletedTask, EndpointMetadataCollection.Empty, string.Empty); 38var endpoint2 = new Endpoint((c) => Task.CompletedTask, EndpointMetadataCollection.Empty, string.Empty);
RoutingMetricsTests.cs (1)
93c.SetEndpoint(new Endpoint(c => Task.CompletedTask, EndpointMetadataCollection.Empty, "Test name"));
TestObjects\TestMatcher.cs (1)
21c.SetEndpoint(new Endpoint(TestConstants.EmptyRequestDelegate, EndpointMetadataCollection.Empty, "Test endpoint"));
Microsoft.AspNetCore.Security.Microbenchmarks (1)
AuthorizationMiddlewareBenchmark.cs (1)
28Endpoint = new Endpoint((context) => Task.CompletedTask, EndpointMetadataCollection.Empty, "Test endpoint")