3 implementations of IRouteValuesFeature
Microsoft.AspNetCore.Http (1)
Features\RouteValuesFeature.cs (1)
12public class RouteValuesFeature : IRouteValuesFeature
Microsoft.AspNetCore.Http.Tests (1)
Internal\DefaultHttpRequestTests.cs (1)
341private class CustomRouteValuesFeature : IRouteValuesFeature
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpProtocol.Generated.cs (1)
25IRouteValuesFeature,
48 references to IRouteValuesFeature
Microsoft.AspNetCore.Antiforgery (2)
src\Shared\HttpExtensions.cs (2)
61var routeValuesFeature = context.Features.Get<IRouteValuesFeature>();
Microsoft.AspNetCore.Diagnostics (7)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (2)
93RouteValues = httpContext.Features.Get<IRouteValuesFeature>()?.RouteValues 268routeValues: httpContext.Features.Get<IRouteValuesFeature>()?.RouteValues
ExceptionHandler\ExceptionHandlerMiddlewareImpl.cs (1)
161RouteValues = context.Features.Get<IRouteValuesFeature>()?.RouteValues
src\Shared\HttpExtensions.cs (2)
61var routeValuesFeature = context.Features.Get<IRouteValuesFeature>();
StatusCodePage\StatusCodePagesExtensions.cs (2)
178var routeValuesFeature = context.HttpContext.Features.Get<IRouteValuesFeature>();
Microsoft.AspNetCore.Hosting (2)
src\Shared\HttpExtensions.cs (2)
61var routeValuesFeature = context.Features.Get<IRouteValuesFeature>();
Microsoft.AspNetCore.Http (3)
Internal\DefaultHttpRequest.cs (3)
20private static readonly Func<IFeatureCollection, IRouteValuesFeature> _newRouteValuesFeature = f => new RouteValuesFeature(); 61private IRouteValuesFeature RouteValuesFeature => 183public IRouteValuesFeature? RouteValues;
Microsoft.AspNetCore.Http.Tests (5)
Internal\DefaultHttpRequestTests.cs (5)
202var routeValuesFeature = context.Features.Get<IRouteValuesFeature>(); 213routeValuesFeature = context.Features.Get<IRouteValuesFeature>(); 233context.Features.Set<IRouteValuesFeature>(customRouteValuesFeature); 238context.Features.Set<IRouteValuesFeature>(null);
Microsoft.AspNetCore.Mvc.Core (2)
Routing\ControllerLinkGeneratorExtensions.cs (1)
222return httpContext?.Features?.Get<IRouteValuesFeature>()?.RouteValues;
Routing\PageLinkGeneratorExtensions.cs (1)
222return httpContext?.Features.Get<IRouteValuesFeature>()?.RouteValues;
Microsoft.AspNetCore.Mvc.Core.Test (3)
Routing\UrlHelperTestBase.cs (3)
968urlHelper.ActionContext.HttpContext.Features.Set<IRouteValuesFeature>(new RouteValuesFeature 1007urlHelper.ActionContext.HttpContext.Features.Set<IRouteValuesFeature>(new RouteValuesFeature 1047urlHelper.ActionContext.HttpContext.Features.Set<IRouteValuesFeature>(new RouteValuesFeature
Microsoft.AspNetCore.Rewrite (2)
RewriteMiddleware.cs (2)
80var routeValuesFeature = context.Features.Get<IRouteValuesFeature>();
Microsoft.AspNetCore.Routing (3)
DefaultLinkGenerator.cs (1)
319return httpContext?.Features.Get<IRouteValuesFeature>()?.RouteValues;
src\Shared\HttpExtensions.cs (2)
61var routeValuesFeature = context.Features.Get<IRouteValuesFeature>();
Microsoft.AspNetCore.Routing.Abstractions (2)
Properties\AssemblyInfo.cs (1)
10[assembly: TypeForwardedTo(typeof(IRouteValuesFeature))]
RoutingHttpContextExtensions.cs (1)
41return httpContext.Features.Get<IRouteValuesFeature>()?.RouteValues[key];
Microsoft.AspNetCore.Routing.Tests (3)
EndpointRoutingMiddlewareTest.cs (2)
103var routeValuesFeature = httpContext.Features.Get<IRouteValuesFeature>(); 126var routeValuesFeature = httpContext.Features.Get<IRouteValuesFeature>();
RouterMiddlewareTest.cs (1)
38Assert.NotNull(context.Features.Get<IRouteValuesFeature>());
Microsoft.AspNetCore.Server.Kestrel.Core (10)
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
236RouteValueDictionary IRouteValuesFeature.RouteValues
Internal\Http\HttpProtocol.Generated.cs (9)
44internal protected IRouteValuesFeature? _currentIRouteValuesFeature; 204else if (key == typeof(IRouteValuesFeature)) 356else if (key == typeof(IRouteValuesFeature)) 358_currentIRouteValuesFeature = (IRouteValuesFeature?)value; 510else if (typeof(TFeature) == typeof(IRouteValuesFeature)) 512feature = Unsafe.As<IRouteValuesFeature?, TFeature?>(ref _currentIRouteValuesFeature); 670else if (typeof(TFeature) == typeof(IRouteValuesFeature)) 672_currentIRouteValuesFeature = Unsafe.As<TFeature?, IRouteValuesFeature?>(ref feature); 820yield return new KeyValuePair<Type, object>(typeof(IRouteValuesFeature), _currentIRouteValuesFeature);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
Http1\Http1HttpProtocolFeatureCollectionTests.cs (2)
117_collection[typeof(IRouteValuesFeature)] = CreateHttp1Connection(); 147_collection.Set<IRouteValuesFeature>(CreateHttp1Connection());
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
HttpProtocolFeatureCollection.cs (2)
47public IRouteValuesFeature Get_IRouteValuesFeature() 49return _collection.Get<IRouteValuesFeature>();