7 implementations of IEndpointFeature
Microsoft.AspNetCore.Http.Abstractions (1)
Routing\EndpointHttpContextExtensions.cs (1)
58private sealed class EndpointFeature : IEndpointFeature
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
EndpointHttpContextExtensionsTests.cs (1)
145private class EndpointFeature : IEndpointFeature
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\RequestDelegateCreationTests.Filters.cs (1)
627private class EndpointFeature : IEndpointFeature
Microsoft.AspNetCore.RequestDecompression.Microbenchmarks (1)
RequestDecompressionMiddlewareBenchmark.cs (1)
71private sealed class EndpointFeature : IEndpointFeature
Microsoft.AspNetCore.RequestDecompression.Tests (1)
RequestDecompressionMiddlewareTests.cs (1)
765private class FakeEndpointFeature : IEndpointFeature
Microsoft.AspNetCore.Security.Microbenchmarks (1)
AuthorizationMiddlewareBenchmark.cs (1)
46private sealed class EndpointFeature : IEndpointFeature
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpProtocol.Generated.cs (1)
26IEndpointFeature,
47 references to IEndpointFeature
BasicWebSite (2)
Controllers\RoutingController.cs (2)
13var endpointFeature = HttpContext.Features.Get<IEndpointFeature>();
Microsoft.AspNetCore.Http.Abstractions (2)
Routing\EndpointHttpContextExtensions.cs (2)
22return context.Features.Get<IEndpointFeature>()?.Endpoint; 34var feature = context.Features.Get<IEndpointFeature>();
Microsoft.AspNetCore.Http.Abstractions.Tests (11)
EndpointHttpContextExtensionsTests.cs (11)
28context.Features.Set<IEndpointFeature>(new EndpointFeature 46context.Features.Set<IEndpointFeature>(new EndpointFeature 68Assert.Null(context.Features.Get<IEndpointFeature>()); 82var feature = context.Features.Get<IEndpointFeature>(); 97context.Features.Set<IEndpointFeature>(initialFeature); 104var feature = context.Features.Get<IEndpointFeature>(); 119context.Features.Set<IEndpointFeature>(initialFeature); 125var feature = context.Features.Get<IEndpointFeature>();
Microsoft.AspNetCore.Http.Connections.Tests (2)
HttpConnectionDispatcherTests.cs (2)
834var endpointFeature = connectionHttpContext.Features.Get<IEndpointFeature>();
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\RequestDelegateCreationTests.Filters.cs (1)
239httpContext.Features.Set<IEndpointFeature>(new EndpointFeature { Endpoint = endpoint });
Microsoft.AspNetCore.RequestDecompression.Microbenchmarks (1)
RequestDecompressionMiddlewareBenchmark.cs (1)
59features.Set<IEndpointFeature>(new EndpointFeature(hasRequestSizeLimitMetadata));
Microsoft.AspNetCore.RequestDecompression.Tests (1)
RequestDecompressionMiddlewareTests.cs (1)
460context.Features.Set<IEndpointFeature>(
Microsoft.AspNetCore.Routing.Abstractions (1)
Properties\AssemblyInfo.cs (1)
9[assembly: TypeForwardedTo(typeof(IEndpointFeature))]
Microsoft.AspNetCore.Routing.Tests (6)
Builder\EndpointRoutingApplicationBuilderExtensionsTest.cs (4)
72Assert.Null(httpContext.Features.Get<IEndpointFeature>()); 104var feature = httpContext.Features.Get<IEndpointFeature>(); 168Assert.Null(httpContext.Features.Get<IEndpointFeature>());
EndpointRoutingMiddlewareTest.cs (2)
36var endpointFeature = httpContext.Features.Get<IEndpointFeature>(); 423var endpointFeature = httpContext.Features.Get<IEndpointFeature>();
Microsoft.AspNetCore.Security.Microbenchmarks (1)
AuthorizationMiddlewareBenchmark.cs (1)
31_httpContextHasEndpoint.Features.Set<IEndpointFeature>(feature);
Microsoft.AspNetCore.Server.Kestrel.Core (10)
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
230Endpoint? IEndpointFeature.Endpoint
Internal\Http\HttpProtocol.Generated.cs (9)
45internal protected IEndpointFeature? _currentIEndpointFeature; 208else if (key == typeof(IEndpointFeature)) 360else if (key == typeof(IEndpointFeature)) 362_currentIEndpointFeature = (IEndpointFeature?)value; 514else if (typeof(TFeature) == typeof(IEndpointFeature)) 516feature = Unsafe.As<IEndpointFeature?, TFeature?>(ref _currentIEndpointFeature); 674else if (typeof(TFeature) == typeof(IEndpointFeature)) 676_currentIEndpointFeature = Unsafe.As<TFeature?, IEndpointFeature?>(ref feature); 824yield return new KeyValuePair<Type, object>(typeof(IEndpointFeature), _currentIEndpointFeature);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
Http1\Http1HttpProtocolFeatureCollectionTests.cs (2)
126_collection[typeof(IEndpointFeature)] = CreateHttp1Connection(); 156_collection.Set<IEndpointFeature>(CreateHttp1Connection());
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
HttpProtocolFeatureCollection.cs (2)
54public IEndpointFeature Get_IEndpointFeature() 56return _collection.Get<IEndpointFeature>();
Mvc.RoutingWebSite (2)
Controllers\RoutingController.cs (2)
13var endpointFeature = HttpContext.Features.Get<IEndpointFeature>();
SignalR.Client.FunctionalTestApp (1)
Startup.cs (1)
73var endpoint = context.HttpContext.Features.Get<IEndpointFeature>()?.Endpoint;
VersioningWebSite (2)
Controllers\RoutingController.cs (2)
13var endpointFeature = HttpContext.Features.Get<IEndpointFeature>();