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