99 instantiations of RouteValueDictionary
Microsoft.AspNetCore.Diagnostics (1)
_generated\3\ExtensionsExceptionJsonContext.RouteValueDictionary.g.cs (1)
31ObjectCreator = () => new global::Microsoft.AspNetCore.Routing.RouteValueDictionary(),
Microsoft.AspNetCore.Http (1)
Features\RouteValuesFeature.cs (1)
26_routeValues = new RouteValueDictionary();
Microsoft.AspNetCore.Http.Abstractions (1)
Routing\RouteValueDictionary.cs (1)
95return new RouteValueDictionary()
Microsoft.AspNetCore.Http.Results (10)
AcceptedAtRoute.cs (2)
41: this(routeName, new RouteValueDictionary(routeValues)) 56RouteValues = routeValues ?? new RouteValueDictionary();
AcceptedAtRouteOfT.cs (2)
44: this(routeName, new RouteValueDictionary(routeValues), value) 62RouteValues = routeValues ?? new RouteValueDictionary();
CreatedAtRoute.cs (2)
41: this(routeName, new RouteValueDictionary(routeValues)) 56RouteValues = routeValues ?? new RouteValueDictionary();
CreatedAtRouteOfT.cs (2)
44: this(routeName, new RouteValueDictionary(routeValues), value) 62RouteValues = routeValues ?? new RouteValueDictionary();
RedirectToRouteHttpResult.cs (2)
99new RouteValueDictionary(routeValues), 125RouteValues = routeValues ?? new RouteValueDictionary();
Microsoft.AspNetCore.Identity (1)
IdentityApiEndpointRouteBuilderExtensions.cs (1)
403var routeValues = new RouteValueDictionary()
Microsoft.AspNetCore.Mvc.Core (26)
AcceptedAtActionResult.cs (1)
38RouteValues = routeValues == null ? null : new RouteValueDictionary(routeValues);
AcceptedAtRouteResult.cs (1)
46RouteValues = routeValues == null ? null : new RouteValueDictionary(routeValues);
Builder\ControllerEndpointRouteBuilderExtensions.cs (6)
114new RouteValueDictionary(defaults), 115new RouteValueDictionary(constraints), 116new RouteValueDictionary(dataTokens)); 155var defaultsDictionary = new RouteValueDictionary(defaults); 158var constraintsDictionary = new RouteValueDictionary(constraints); 508return new DynamicControllerMetadata(new RouteValueDictionary()
Builder\MvcAreaRouteBuilderExtensions.cs (2)
123var defaultsDictionary = new RouteValueDictionary(defaults); 126var constraintsDictionary = new RouteValueDictionary(constraints);
CreatedAtActionResult.cs (1)
38RouteValues = routeValues == null ? null : new RouteValueDictionary(routeValues);
CreatedAtRouteResult.cs (1)
46RouteValues = routeValues == null ? null : new RouteValueDictionary(routeValues);
RedirectToActionResult.cs (1)
125RouteValues = routeValues == null ? null : new RouteValueDictionary(routeValues);
RedirectToPageResult.cs (1)
153RouteValues = routeValues == null ? null : new RouteValueDictionary(routeValues);
RedirectToRouteResult.cs (1)
122RouteValues = routeValues == null ? null : new RouteValueDictionary(routeValues);
Routing\ActionConstraintMatcherPolicy.cs (1)
226routeData.PushState(router: null, values: null, dataTokens: new RouteValueDictionary(dataTokens));
Routing\ActionEndpointFactory.cs (3)
189var requiredValues = new RouteValueDictionary(); 298updatedDefaults = new RouteValueDictionary(attributeRoutePattern.Defaults); 531routeData.PushState(router: null, context.Request.RouteValues, new RouteValueDictionary(dataTokens?.DataTokens));
Routing\AttributeRoute.cs (1)
81var defaults = new RouteValueDictionary();
Routing\ControllerLinkGeneratorExtensions.cs (1)
208var explicitValues = new RouteValueDictionary(values);
Routing\DynamicControllerEndpointMatcherPolicy.cs (1)
133var values = new RouteValueDictionary(dynamicValues);
Routing\PageLinkGeneratorExtensions.cs (1)
208var explicitValues = new RouteValueDictionary(values);
Routing\UrlHelperBase.cs (2)
35_routeValueDictionary = new RouteValueDictionary(); 102return new RouteValueDictionary(values);
UrlHelperExtensions.cs (1)
478var routeValues = new RouteValueDictionary(values);
Microsoft.AspNetCore.Mvc.RazorPages (2)
Builder\RazorPagesEndpointRouteBuilderExtensions.cs (1)
355return new DynamicPageMetadata(new RouteValueDictionary()
Infrastructure\DynamicPageEndpointMatcherPolicy.cs (1)
132var values = new RouteValueDictionary(dynamicValues);
Microsoft.AspNetCore.Mvc.TagHelpers (6)
AnchorTagHelper.cs (2)
221routeValues = new RouteValueDictionary(_routeValues); 229routeValues = new RouteValueDictionary();
FormActionTagHelper.cs (2)
233routeValues = new RouteValueDictionary(_routeValues); 240routeValues = new RouteValueDictionary();
FormTagHelper.cs (2)
240routeValues = new RouteValueDictionary(_routeValues); 247routeValues = new RouteValueDictionary();
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
RemoteAttributeBase.cs (1)
39RouteData = new RouteValueDictionary();
Microsoft.AspNetCore.Routing (40)
DefaultLinkParser.cs (2)
111var matcher = new RoutePatternMatcher(endpoint.RoutePattern, new RouteValueDictionary(endpoint.RoutePattern.Defaults)); 123values = new RouteValueDictionary();
LinkGeneratorEndpointNameAddressExtensions.cs (7)
48new RouteValueDictionary(values), 88values ?? new(), 120return generator.GetPathByAddress<string>(endpointName, new RouteValueDictionary(values), pathBase, fragment, options); 148return generator.GetPathByAddress<string>(endpointName, values ?? new(), pathBase, fragment, options); 201new RouteValueDictionary(values), 260values ?? new(), 315return generator.GetUriByAddress<string>(endpointName, new RouteValueDictionary(values), scheme, host, pathBase, fragment, options);
LinkGeneratorRouteValuesAddressExtensions.cs (5)
44var address = CreateAddress(httpContext, routeName, new(values)); 119var address = CreateAddress(httpContext: null, routeName, new(values)); 197var address = CreateAddress(httpContext, routeName, new(values)); 308var address = CreateAddress(httpContext: null, routeName, new(values)); 360ExplicitValues = values ?? new(),
MapRouteRouteBuilderExtensions.cs (3)
121new RouteValueDictionary(defaults), 122new RouteValueDictionary(constraints)!, 123new RouteValueDictionary(dataTokens),
Matching\DfaMatcher.cs (2)
160state.Values ??= new RouteValueDictionary(); 170state.Values ??= new RouteValueDictionary();
Matching\DfaMatcherBuilder.cs (1)
374var routeValues = new RouteValueDictionary();
Patterns\DefaultRoutePatternTransformer.cs (2)
27return SubstituteRequiredValues(original, new RouteValueDictionary(requiredValues)); 173updatedDefaults = new RouteValueDictionary(original.Defaults);
Patterns\RoutePatternFactory.cs (1)
1154return values is null ? null : new RouteValueDictionary(values);
Patterns\RoutePatternMatcher.cs (2)
30Defaults = defaults ?? new RouteValueDictionary(); 347var outValues = new RouteValueDictionary();
RequestDelegateRouteBuilderExtensions.cs (1)
260var constraints = new RouteValueDictionary
RouteBase.cs (3)
47DataTokens = dataTokens ?? new RouteValueDictionary(); 244var result = defaults == null ? new RouteValueDictionary() : new RouteValueDictionary(defaults);
RouteValuesAddressScheme.cs (2)
156RequiredLinkValues = new RouteValueDictionary(requiredValues), 161entry.Defaults = new RouteValueDictionary(endpoint.RoutePattern.Defaults);
Template\TemplateBinder.cs (4)
83var filters = new RouteValueDictionary(_defaults); 110_defaults = new RouteValueDictionary(pattern.Defaults); 115var filters = new RouteValueDictionary(_defaults); 406var combinedValues = new RouteValueDictionary(acceptedValues);
Template\TemplateMatcher.cs (1)
33Defaults = defaults ?? new RouteValueDictionary();
Tree\LinkGenerationDecisionTree.cs (1)
21private static readonly RouteValueDictionary EmptyAmbientValues = new RouteValueDictionary();
Tree\TreeRouteBuilder.cs (2)
145entry.Defaults = new RouteValueDictionary(); 219entry.Defaults = new RouteValueDictionary();
Tree\TreeRouter.cs (1)
296var inputValues = new RouteValueDictionary();
Microsoft.AspNetCore.Routing.Abstractions (8)
RouteData.cs (6)
45_dataTokens = new RouteValueDictionary(other._dataTokens); 50_values = new RouteValueDictionary(other._values); 74_dataTokens = new RouteValueDictionary(); 106_values = new RouteValueDictionary(); 157_dataTokens?.Count > 0 ? new RouteValueDictionary(_dataTokens) : null, 159_values?.Count > 0 ? new RouteValueDictionary(_values) : null);
VirtualPathData.cs (2)
40_dataTokens = dataTokens == null ? null : new RouteValueDictionary(dataTokens); 52_dataTokens = new RouteValueDictionary();
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
238get => _routeValues ??= new RouteValueDictionary();
Microsoft.AspNetCore.StaticAssets (1)
Development\StaticAssetDevelopmentRuntimeHandler.cs (1)
326new RouteValueDictionary { ["path"] = new FileExistsConstraint(environment) });
375 references to RouteValueDictionary
Microsoft.AspNetCore.Diagnostics (21)
_generated\1\ExtensionsExceptionJsonContext.ExceptionExtensionData.g.cs (6)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.AspNetCore.Diagnostics.ExceptionExtensionData((string)args[0], (global::Microsoft.AspNetCore.Http.IHeaderDictionary)args[1], (string)args[2], (string)args[3], (global::Microsoft.AspNetCore.Routing.RouteValueDictionary)args[4]), 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Diagnostics.ExceptionExtensionData).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(global::Microsoft.AspNetCore.Http.IHeaderDictionary), typeof(string), typeof(string), typeof(global::Microsoft.AspNetCore.Routing.RouteValueDictionary)}, modifiers: null), 136var info4 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.AspNetCore.Routing.RouteValueDictionary> 151AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Diagnostics.ExceptionExtensionData).GetProperty("RouteValues", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Routing.RouteValueDictionary), global::System.Array.Empty<global::System.Type>(), null), 154properties[4] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.AspNetCore.Routing.RouteValueDictionary>(options, info4); 227ParameterType = typeof(global::Microsoft.AspNetCore.Routing.RouteValueDictionary),
_generated\3\ExtensionsExceptionJsonContext.RouteValueDictionary.g.cs (9)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Routing.RouteValueDictionary>? _RouteValueDictionary; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Routing.RouteValueDictionary> RouteValueDictionary 22get => _RouteValueDictionary ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Routing.RouteValueDictionary>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Routing.RouteValueDictionary)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Routing.RouteValueDictionary> Create_RouteValueDictionary(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Routing.RouteValueDictionary>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Routing.RouteValueDictionary> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::Microsoft.AspNetCore.Routing.RouteValueDictionary> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIDictionaryInfo<global::Microsoft.AspNetCore.Routing.RouteValueDictionary, string, object>(options, info);
_generated\8\ExtensionsExceptionJsonContext.GetJsonTypeInfo.g.cs (1)
30if (type == typeof(global::Microsoft.AspNetCore.Routing.RouteValueDictionary))
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (2)
392public ExceptionExtensionData(string details, IHeaderDictionary headers, string path, string? endpoint, RouteValueDictionary? routeValues) 405public RouteValueDictionary? RouteValues { get; }
DeveloperExceptionPage\Views\ErrorPageModel.cs (1)
47public RouteValueDictionary RouteValues { get; set; }
ExceptionHandler\ExceptionHandlerFeature.cs (1)
24public RouteValueDictionary? RouteValues { get; set; }
StatusCodePage\StatusCodeReExecuteFeature.cs (1)
28public RouteValueDictionary? RouteValues { get; set; }
Microsoft.AspNetCore.Diagnostics.Abstractions (4)
IExceptionHandlerFeature.cs (2)
31/// Gets the <see cref="RouteValueDictionary"/> associated with the original request. 33RouteValueDictionary? RouteValues => null;
IStatusCodeReExecuteFeature.cs (2)
42/// Gets the <see cref="RouteValueDictionary"/> associated with the original request. 44RouteValueDictionary? RouteValues => null;
Microsoft.AspNetCore.Http (4)
Features\RouteValuesFeature.cs (3)
14private RouteValueDictionary? _routeValues; 17/// Gets or sets the <see cref="RouteValueDictionary"/> associated with the currrent 20public RouteValueDictionary RouteValues
Internal\DefaultHttpRequest.cs (1)
166public override RouteValueDictionary RouteValues
Microsoft.AspNetCore.Http.Abstractions (26)
HttpRequest.cs (2)
153public virtual RouteValueDictionary RouteValues { get; set; } = null!; 179public RouteValueDictionary RouteValues => _request.RouteValues;
Routing\IRouteValuesFeature.cs (2)
15/// Gets or sets the <see cref="RouteValueDictionary"/> associated with the current 18RouteValueDictionary RouteValues { get; set; }
Routing\RouteValueDictionary.cs (22)
19[assembly: MetadataUpdateHandler(typeof(RouteValueDictionary.MetadataUpdateHandler))] 55/// Creates a new <see cref="RouteValueDictionary"/> from the provided array. 59/// <returns>A new <see cref="RouteValueDictionary"/>.</returns> 60public static RouteValueDictionary FromArray(KeyValuePair<string, object?>[] items) 104/// Creates an empty <see cref="RouteValueDictionary"/>. 113/// Creates a <see cref="RouteValueDictionary"/> initialized with the specified <paramref name="values"/>. 128if (values is RouteValueDictionary dictionary) 164/// Creates a <see cref="RouteValueDictionary"/> initialized with the specified <paramref name="values"/>. 181/// Creates a <see cref="RouteValueDictionary"/> initialized with the specified <paramref name="values"/>. 197/// Creates a <see cref="RouteValueDictionary"/> initialized with the specified <paramref name="dictionary"/>. 199/// <param name="dictionary">A <see cref="RouteValueDictionary"/> to initialize the dictionary.</param> 200public RouteValueDictionary(RouteValueDictionary? dictionary) 224private void Initialize(RouteValueDictionary dictionary) 376var message = Resources.FormatRouteValueDictionary_DuplicateKey(key, nameof(RouteValueDictionary)); 538/// Attempts to remove and return the value that has the specified key from the <see cref="RouteValueDictionary"/>. 541/// <param name="value">When this method returns, contains the object removed from the <see cref="RouteValueDictionary"/>, or <c>null</c> if key does not exist.</param> 790private readonly RouteValueDictionary _dictionary; 796/// <param name="dictionary">A <see cref="RouteValueDictionary"/>.</param> 797public Enumerator(RouteValueDictionary dictionary) 824var dictionary = _dictionary; 851var dictionary = _dictionary; 911nameof(RouteValueDictionary));
Microsoft.AspNetCore.Http.Extensions (1)
RequestDelegateFactory.cs (1)
69private static readonly PropertyInfo RouteValuesIndexerProperty = typeof(RouteValueDictionary).GetProperty("Item")!;
Microsoft.AspNetCore.Http.Results (20)
AcceptedAtRoute.cs (2)
53RouteValueDictionary? routeValues) 67public RouteValueDictionary RouteValues { get; }
AcceptedAtRouteOfT.cs (2)
57RouteValueDictionary? routeValues, 81public RouteValueDictionary RouteValues { get; }
CreatedAtRoute.cs (2)
53RouteValueDictionary? routeValues) 67public RouteValueDictionary RouteValues { get; }
CreatedAtRouteOfT.cs (2)
57RouteValueDictionary? routeValues, 81public RouteValueDictionary RouteValues { get; }
RedirectToRouteHttpResult.cs (2)
119RouteValueDictionary? routeValues, 139public RouteValueDictionary RouteValues { get; }
Results.cs (5)
584public static IResult RedirectToRoute(string? routeName, RouteValueDictionary? routeValues, bool permanent = false, bool preserveMethod = false, string? fragment = null) 891public static IResult CreatedAtRoute(string? routeName, RouteValueDictionary? routeValues, object? value = null) 914public static IResult CreatedAtRoute<TValue>(string? routeName, RouteValueDictionary? routeValues, TValue? value = default) 955public static IResult AcceptedAtRoute(string? routeName, RouteValueDictionary? routeValues, object? value = null) 978public static IResult AcceptedAtRoute<TValue>(string? routeName, RouteValueDictionary? routeValues, TValue? value = default)
TypedResults.cs (5)
635public static RedirectToRouteHttpResult RedirectToRoute(string? routeName, RouteValueDictionary? routeValues, bool permanent = false, bool preserveMethod = false, string? fragment = null) 954public static CreatedAtRoute CreatedAtRoute(string? routeName, RouteValueDictionary? routeValues) 979public static CreatedAtRoute<TValue> CreatedAtRoute<TValue>(TValue? value, string? routeName, RouteValueDictionary? routeValues) 1044public static AcceptedAtRoute AcceptedAtRoute(string? routeName, RouteValueDictionary? routeValues) 1069public static AcceptedAtRoute<TValue> AcceptedAtRoute<TValue>(TValue? value, string? routeName, RouteValueDictionary? routeValues)
Microsoft.AspNetCore.Identity (1)
IdentityApiEndpointRouteBuilderExtensions.cs (1)
403var routeValues = new RouteValueDictionary()
Microsoft.AspNetCore.Mvc.Core (73)
AcceptedAtActionResult.cs (1)
60public RouteValueDictionary? RouteValues { get; set; }
AcceptedAtRouteResult.cs (1)
63public RouteValueDictionary? RouteValues { get; set; }
Builder\ControllerEndpointRouteBuilderExtensions.cs (2)
155var defaultsDictionary = new RouteValueDictionary(defaults); 158var constraintsDictionary = new RouteValueDictionary(constraints);
Builder\MvcAreaRouteBuilderExtensions.cs (2)
123var defaultsDictionary = new RouteValueDictionary(defaults); 126var constraintsDictionary = new RouteValueDictionary(constraints);
CreatedAtActionResult.cs (1)
60public RouteValueDictionary? RouteValues { get; set; }
CreatedAtRouteResult.cs (1)
63public RouteValueDictionary? RouteValues { get; set; }
Infrastructure\ActionSelectionTable.cs (1)
162public IReadOnlyList<TItem> Select(RouteValueDictionary values)
ModelBinding\RouteValueProvider.cs (4)
12/// An <see cref="IValueProvider"/> adapter for data stored in an <see cref="RouteValueDictionary"/>. 16private readonly RouteValueDictionary _values; 27RouteValueDictionary values) 38public RouteValueProvider(BindingSource bindingSource, RouteValueDictionary values, CultureInfo culture)
RedirectToActionResult.cs (1)
149public RouteValueDictionary? RouteValues { get; set; }
RedirectToPageResult.cs (1)
177public RouteValueDictionary? RouteValues { get; set; }
RedirectToRouteResult.cs (1)
141public RouteValueDictionary? RouteValues { get; set; }
Routing\ActionEndpointFactory.cs (4)
189var requiredValues = new RouteValueDictionary(); 278RouteValueDictionary? updatedDefaults = null; 333RouteValueDictionary? dataTokens, 500private RequestDelegate? CreateRequestDelegate(ActionDescriptor action, RouteValueDictionary? dataTokens = null)
Routing\AttributeRoute.cs (1)
81var defaults = new RouteValueDictionary();
Routing\ControllerActionEndpointDataSource.cs (2)
52RouteValueDictionary? defaults, 54RouteValueDictionary? dataTokens)
Routing\ControllerLinkGeneratorExtensions.cs (3)
208var explicitValues = new RouteValueDictionary(values); 209var ambientValues = GetAmbientValues(httpContext); 220private static RouteValueDictionary? GetAmbientValues(HttpContext? httpContext)
Routing\ControllerRequestDelegateFactory.cs (1)
66public RequestDelegate? CreateRequestDelegate(ActionDescriptor actionDescriptor, RouteValueDictionary? dataTokens)
Routing\ConventionalRouteEntry.cs (3)
15public readonly RouteValueDictionary? DataTokens; 23RouteValueDictionary? defaults, 25RouteValueDictionary? dataTokens,
Routing\DynamicControllerEndpointMatcherPolicy.cs (3)
77var originalValues = candidates[i].Values!; 79RouteValueDictionary? dynamicValues = null; 133var values = new RouteValueDictionary(dynamicValues);
Routing\DynamicControllerEndpointSelector.cs (1)
23public IReadOnlyList<Endpoint> SelectEndpoints(RouteValueDictionary values)
Routing\DynamicControllerMetadata.cs (2)
10public DynamicControllerMetadata(RouteValueDictionary values) 19public RouteValueDictionary Values { get; }
Routing\DynamicRouteValueTransformer.cs (12)
20/// The route values returned from a <see cref="TransformAsync(HttpContext, RouteValueDictionary)"/> implementation 23/// <see cref="FilterAsync(HttpContext, RouteValueDictionary, IReadOnlyList{Endpoint})" /> as well as 32/// <item><description><see cref="TransformAsync(HttpContext, RouteValueDictionary)"/></description></item> 33/// <item><description><see cref="FilterAsync(HttpContext, RouteValueDictionary, IReadOnlyList{Endpoint})" /></description></item> 62public abstract ValueTask<RouteValueDictionary> TransformAsync(HttpContext httpContext, RouteValueDictionary values); 66/// <see cref="TransformAsync(HttpContext, RouteValueDictionary)" />. 69/// <param name="values">The route values returned from <see cref="TransformAsync(HttpContext, RouteValueDictionary)" />.</param> 72/// <see cref="TransformAsync(HttpContext, RouteValueDictionary)" />. 77/// Implementations of <see cref="FilterAsync(HttpContext, RouteValueDictionary, IReadOnlyList{Endpoint})" /> may further 82/// <see cref="FilterAsync(HttpContext, RouteValueDictionary, IReadOnlyList{Endpoint})" /> will not be called in the case 86public virtual ValueTask<IReadOnlyList<Endpoint>> FilterAsync(HttpContext httpContext, RouteValueDictionary values, IReadOnlyList<Endpoint> endpoints)
Routing\EndpointRoutingUrlHelper.cs (1)
40var values = GetValuesDictionary(urlActionContext.Values);
Routing\IRequestDelegateFactory.cs (1)
15RequestDelegate? CreateRequestDelegate(ActionDescriptor actionDescriptor, RouteValueDictionary? dataTokens);
Routing\KnownRouteValueConstraint.cs (1)
38RouteValueDictionary values,
Routing\PageLinkGeneratorExtensions.cs (3)
208var explicitValues = new RouteValueDictionary(values); 209var ambientValues = GetAmbientValues(httpContext); 220private static RouteValueDictionary? GetAmbientValues(HttpContext? httpContext)
Routing\UrlHelper.cs (5)
55var valuesDictionary = GetValuesDictionary(actionContext.Values); 68var valuesDictionary = routeContext.Values as RouteValueDictionary ?? GetValuesDictionary(routeContext.Values); 80/// The <see cref="RouteValueDictionary"/>. The <see cref="Router"/> uses these values, in combination with 84protected virtual VirtualPathData? GetVirtualPathData(string? routeName, RouteValueDictionary values)
Routing\UrlHelperBase.cs (12)
23private readonly RouteValueDictionary _routeValueDictionary; 39/// Gets the <see cref="RouteValueDictionary"/> associated with the current request. 41protected RouteValueDictionary AmbientValues { get; } 72/// Gets a <see cref="RouteValueDictionary"/> using the specified values. 75/// <returns>A <see cref="RouteValueDictionary"/> with the specified values.</returns> 76protected RouteValueDictionary GetValuesDictionary(object? values) 80if (values is RouteValueDictionary routeValuesDictionary) 228RouteValueDictionary values, 229RouteValueDictionary? ambientValues) 263RouteValueDictionary values, 264RouteValueDictionary? ambientValues) 375private static object CalculatePageName(ActionContext? context, RouteValueDictionary? ambientValues, string pageName)
UrlHelperExtensions.cs (2)
478var routeValues = new RouteValueDictionary(values); 479var ambientValues = urlHelper.ActionContext.RouteData.Values;
Microsoft.AspNetCore.Mvc.RazorPages (7)
Infrastructure\DynamicPageEndpointMatcherPolicy.cs (3)
79var originalValues = candidates[i].Values; 81RouteValueDictionary? dynamicValues = null; 132var values = new RouteValueDictionary(dynamicValues);
Infrastructure\DynamicPageEndpointSelector.cs (1)
25public IReadOnlyList<Endpoint> SelectEndpoints(RouteValueDictionary values)
Infrastructure\DynamicPageMetadata.cs (2)
10public DynamicPageMetadata(RouteValueDictionary values) 19public RouteValueDictionary Values { get; }
Infrastructure\PageRequestDelegateFactory.cs (1)
77public RequestDelegate? CreateRequestDelegate(ActionDescriptor actionDescriptor, RouteValueDictionary? dataTokens)
Microsoft.AspNetCore.Mvc.TagHelpers (4)
AnchorTagHelper.cs (1)
218RouteValueDictionary routeValues = null;
Cache\CacheTagKey.cs (1)
24private static readonly Func<RouteValueDictionary, string, string> RouteValueAccessor = (c, key) =>
FormActionTagHelper.cs (1)
230RouteValueDictionary routeValues = null;
FormTagHelper.cs (1)
237RouteValueDictionary routeValues = null;
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
RemoteAttributeBase.cs (2)
43/// Gets the <see cref="RouteValueDictionary"/> used when generating the URL where client should send a 46protected RouteValueDictionary RouteData { get; }
Microsoft.AspNetCore.Routing (176)
Constraints\BoolRouteConstraint.cs (1)
29RouteValueDictionary values,
Constraints\CompositeRouteConstraint.cs (1)
43RouteValueDictionary values,
Constraints\DateTimeRouteConstraint.cs (1)
35RouteValueDictionary values,
Constraints\DecimalRouteConstraint.cs (1)
29RouteValueDictionary values,
Constraints\DoubleRouteConstraint.cs (1)
29RouteValueDictionary values,
Constraints\FileNameRouteConstraint.cs (1)
100RouteValueDictionary values,
Constraints\FloatRouteConstraint.cs (1)
29RouteValueDictionary values,
Constraints\GuidRouteConstraint.cs (1)
31RouteValueDictionary values,
Constraints\HttpMethodRouteConstraint.cs (1)
37RouteValueDictionary values,
Constraints\IntRouteConstraint.cs (1)
29RouteValueDictionary values,
Constraints\LengthRouteConstraint.cs (1)
85RouteValueDictionary values,
Constraints\LongRouteConstraint.cs (1)
29RouteValueDictionary values,
Constraints\MaxLengthRouteConstraint.cs (1)
49RouteValueDictionary values,
Constraints\MaxRouteConstraint.cs (1)
43RouteValueDictionary values,
Constraints\MinLengthRouteConstraint.cs (1)
49RouteValueDictionary values,
Constraints\MinRouteConstraint.cs (1)
43RouteValueDictionary values,
Constraints\NonFileNameRouteConstraint.cs (1)
96RouteValueDictionary values,
Constraints\NullRouteConstraint.cs (1)
21public bool Match(HttpContext? httpContext, IRouter? route, string routeKey, RouteValueDictionary values, RouteDirection routeDirection)
Constraints\OptionalRouteConstraint.cs (1)
43RouteValueDictionary values,
Constraints\RangeRouteConstraint.cs (1)
57RouteValueDictionary values,
Constraints\RegexErrorStubRouteConstraint.cs (1)
24bool IRouteConstraint.Match(HttpContext? httpContext, IRouter? route, string routeKey, RouteValueDictionary values, RouteDirection routeDirection)
Constraints\RegexRouteConstraint.cs (1)
84RouteValueDictionary values,
Constraints\RequiredRouteConstraint.cs (1)
23RouteValueDictionary values,
Constraints\StringRouteConstraint.cs (1)
29public bool Match(HttpContext? httpContext, IRouter? route, string routeKey, RouteValueDictionary values, RouteDirection routeDirection)
DefaultLinkGenerator.cs (17)
72RouteValueDictionary values, 73RouteValueDictionary? ambientValues = default, 98RouteValueDictionary values, 122RouteValueDictionary values, 123RouteValueDictionary? ambientValues = default, 151RouteValueDictionary values, 202RouteValueDictionary values, 203RouteValueDictionary? ambientValues, 236RouteValueDictionary values, 237RouteValueDictionary? ambientValues, 283RouteValueDictionary values, 284RouteValueDictionary? ambientValues, 317public static RouteValueDictionary? GetAmbientValues(HttpContext? httpContext) 362public static void TemplateFailedRequiredValues(ILogger logger, RouteEndpoint endpoint, RouteValueDictionary? ambientValues, RouteValueDictionary values) 379public static void TemplateFailedConstraint(ILogger logger, RouteEndpoint endpoint, string? parameterName, IRouteConstraint? constraint, RouteValueDictionary values) 395public static void TemplateFailedExpansion(ILogger logger, RouteEndpoint endpoint, RouteValueDictionary values)
DefaultLinkParser.cs (3)
48public override RouteValueDictionary? ParsePathByAddress<TAddress>(TAddress address, PathString path) 59if (TryParse(endpoint, path, out var values)) 119internal bool TryParse(RouteEndpoint endpoint, PathString path, [NotNullWhen(true)] out RouteValueDictionary? values)
LinkGeneratorEndpointNameAddressExtensions.cs (4)
76RouteValueDictionary? values = default, 140RouteValueDictionary? values = default, 246RouteValueDictionary? values = default, 348RouteValueDictionary values,
LinkGeneratorRouteValuesAddressExtensions.cs (5)
76RouteValueDictionary? values = default, 140RouteValueDictionary? values = default, 246RouteValueDictionary? values = default, 342RouteValueDictionary values, 355private static RouteValuesAddress CreateAddress(HttpContext? httpContext, string? routeName, RouteValueDictionary? values)
LinkParser.cs (2)
21/// A <see cref="RouteValueDictionary"/> with the parsed values if parsing is successful; 35public abstract RouteValueDictionary? ParsePathByAddress<TAddress>(TAddress address, PathString path);
LinkParserEndpointNameAddressExtensions.cs (2)
21/// A <see cref="RouteValueDictionary"/> with the parsed values if parsing is successful; 35public static RouteValueDictionary? ParsePathByEndpointName(
Matching\CandidateSet.cs (6)
33/// <param name="values">The list of <see cref="RouteValueDictionary"/> instances.</param> 35public CandidateSet(Endpoint[] endpoints, RouteValueDictionary[] values, int[] scores) 162/// The <see cref="RouteValueDictionary"/> to replace the original <see cref="RouteValueDictionary"/> at 165public void ReplaceEndpoint(int index, Endpoint? endpoint, RouteValueDictionary? values) 242var values = Candidates[index].Values;
Matching\CandidateState.cs (3)
20internal CandidateState(Endpoint endpoint, RouteValueDictionary? values, int score) 50/// Gets <see cref="RouteValueDictionary"/> associated with the 53public RouteValueDictionary? Values { get; internal set; }
Matching\DefaultEndpointSelector.cs (1)
61RouteValueDictionary? values = null;
Matching\DfaMatcher.cs (3)
151state.Values = RouteValueDictionary.FromArray(slots); 280RouteValueDictionary values) 301RouteValueDictionary values)
Matching\DfaMatcherBuilder.cs (1)
374var routeValues = new RouteValueDictionary();
Patterns\DefaultRoutePatternTransformer.cs (3)
30public override RoutePattern SubstituteRequiredValues(RoutePattern original, RouteValueDictionary requiredValues) 152RouteValueDictionary updatedDefaults = null; 197private bool MatchesConstraints(RoutePattern pattern, RoutePatternParameterPart parameter, string key, RouteValueDictionary requiredValues)
Patterns\RoutePatternFactory.cs (41)
59/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 64/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 85/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 90/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 95public static RoutePattern Parse([StringSyntax("Route")] string pattern, RouteValueDictionary? defaults, RouteValueDictionary? parameterPolicies) 110/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 115/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 139/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 144/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 152public static RoutePattern Parse([StringSyntax("Route")] string pattern, RouteValueDictionary? defaults, RouteValueDictionary? parameterPolicies, RouteValueDictionary? requiredValues) 192/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 197/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 220/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 225/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 232RouteValueDictionary? defaults, 233RouteValueDictionary? parameterPolicies, 248/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 253/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 278/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 283/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 291RouteValueDictionary? defaults, 292RouteValueDictionary? parameterPolicies, 331/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 336/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 359/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 364/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 371RouteValueDictionary? defaults, 372RouteValueDictionary? parameterPolicies, 387/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 392/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 417/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 422/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 430RouteValueDictionary? defaults, 431RouteValueDictionary? parameterPolicies, 442RouteValueDictionary? defaults, 444RouteValueDictionary? requiredValues, 648private static Dictionary<string, List<RoutePatternParameterPolicyReference>>? CreateRoutePatternPolicyReferences(RouteValueDictionary? parameterPolicies) 1152private static RouteValueDictionary? Wrap(object? values)
Patterns\RoutePatternMatcher.cs (7)
25RouteValueDictionary defaults) 59public RouteValueDictionary Defaults { get; } 63public bool TryMatch(PathString path, RouteValueDictionary values) 247private bool SavePathSegmentsAsValues(int index, RouteValueDictionary values, StringSegment requestSegment, RoutePatternPathSegment pathSegment) 289RouteValueDictionary values) 335RouteValueDictionary values, 347var outValues = new RouteValueDictionary();
Patterns\RoutePatternTransformer.cs (1)
61public virtual RoutePattern? SubstituteRequiredValues(RoutePattern original, RouteValueDictionary requiredValues)
RequestDelegateRouteBuilderExtensions.cs (1)
260var constraints = new RouteValueDictionary
Route.cs (4)
47RouteValueDictionary? defaults, 49RouteValueDictionary? dataTokens, 69RouteValueDictionary? defaults, 71RouteValueDictionary? dataTokens,
RouteBase.cs (9)
38RouteValueDictionary? defaults, 40RouteValueDictionary? dataTokens) 77public virtual RouteValueDictionary DataTokens { get; protected set; } 82public virtual RouteValueDictionary Defaults { get; protected set; } 240protected static RouteValueDictionary GetDefaults( 242RouteValueDictionary? defaults) 244var result = defaults == null ? new RouteValueDictionary() : new RouteValueDictionary(defaults); 276RouteValueDictionary destination, 277RouteValueDictionary values)
RouteConstraintMatcher.cs (1)
38RouteValueDictionary routeValues,
RouteValuesAddress.cs (2)
23public RouteValueDictionary ExplicitValues { get; set; } = default!; 28public RouteValueDictionary? AmbientValues { get; set; }
Template\DefaultTemplateBinderFactory.cs (1)
26public override TemplateBinder Create(RouteTemplate template, RouteValueDictionary defaults)
Template\TemplateBinder.cs (17)
25private readonly RouteValueDictionary? _defaults; 47RouteValueDictionary defaults) 67RouteValueDictionary? defaults, 83var filters = new RouteValueDictionary(_defaults); 115var filters = new RouteValueDictionary(_defaults); 160public TemplateValuesResult? GetValues(RouteValueDictionary? ambientValues, RouteValueDictionary values) 383var acceptedValues = RouteValueDictionary.FromArray(slots); 406var combinedValues = new RouteValueDictionary(acceptedValues); 431public bool TryProcessConstraints(HttpContext? httpContext, RouteValueDictionary combinedValues, out string? parameterName, out IRouteConstraint? constraint) 455public string? BindValues(RouteValueDictionary acceptedValues) 471RouteValueDictionary acceptedValues, 499private bool TryBindValuesCore(UriBuildingContext context, RouteValueDictionary acceptedValues) 698RouteValueDictionary? ambientValues, 699RouteValueDictionary acceptedValues, 700RouteValueDictionary combinedValues)
Template\TemplateBinderFactory.cs (1)
20public abstract TemplateBinder Create(RouteTemplate template, RouteValueDictionary defaults);
Template\TemplateMatcher.cs (4)
28RouteValueDictionary defaults) 67public RouteValueDictionary Defaults { get; } 79/// <param name="values">A <see cref="RouteValueDictionary"/> to populate with parameter values.</param> 81public bool TryMatch(PathString path, RouteValueDictionary values)
Template\TemplateValuesResult.cs (2)
14public RouteValueDictionary AcceptedValues { get; set; } = default!; 27public RouteValueDictionary CombinedValues { get; set; } = default!;
Tree\InboundRouteEntry.cs (1)
35public RouteValueDictionary Defaults { get; set; }
Tree\LinkGenerationDecisionTree.cs (5)
21private static readonly RouteValueDictionary EmptyAmbientValues = new RouteValueDictionary(); 67public IList<OutboundMatchResult> GetMatches(RouteValueDictionary values, RouteValueDictionary ambientValues) 109RouteValueDictionary values, 110RouteValueDictionary ambientValues,
Tree\OutboundRouteEntry.cs (2)
24public RouteValueDictionary Defaults { get; set; } 56public RouteValueDictionary RequiredLinkValues { get; set; }
Tree\TreeRouteBuilder.cs (2)
175/// <param name="requiredLinkValues">The <see cref="RouteValueDictionary"/> containing the route values.</param> 182RouteValueDictionary requiredLinkValues,
Tree\TreeRouter.cs (1)
296var inputValues = new RouteValueDictionary();
Microsoft.AspNetCore.Routing.Abstractions (33)
IRouteConstraint.cs (1)
39RouteValueDictionary values,
LinkGenerator.cs (6)
49RouteValueDictionary values, 50RouteValueDictionary? ambientValues = default, 71RouteValueDictionary values, 112RouteValueDictionary values, 113RouteValueDictionary? ambientValues = default, 149RouteValueDictionary values,
Properties\AssemblyInfo.cs (1)
14[assembly: TypeForwardedTo(typeof(RouteValueDictionary))]
RouteData.cs (16)
17private RouteValueDictionary? _dataTokens; 19private RouteValueDictionary? _values; 57/// <param name="values">The <see cref="RouteValueDictionary"/> values.</param> 58public RouteData(RouteValueDictionary values) 68public RouteValueDictionary DataTokens 100public RouteValueDictionary Values 122/// <see cref="PushState(IRouter, RouteValueDictionary, RouteValueDictionary)"/>. 130/// A <see cref="RouteValueDictionary"/> to merge into <see cref="Values"/>. If <c>null</c>, then 134/// A <see cref="RouteValueDictionary"/> to merge into <see cref="DataTokens"/>. If <c>null</c>, then 138public RouteDataSnapshot PushState(IRouter? router, RouteValueDictionary? values, RouteValueDictionary? dataTokens) 202private readonly RouteValueDictionary? _dataTokens; 204private readonly RouteValueDictionary? _values; 215RouteValueDictionary? dataTokens, 217RouteValueDictionary? values)
VirtualPathContext.cs (6)
21RouteValueDictionary ambientValues, 22RouteValueDictionary values) 36RouteValueDictionary ambientValues, 37RouteValueDictionary values, 49public RouteValueDictionary AmbientValues { get; } 64public RouteValueDictionary Values { get; set; }
VirtualPathData.cs (3)
12private RouteValueDictionary _dataTokens; 34RouteValueDictionary dataTokens) 46public RouteValueDictionary DataTokens
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Http\HttpProtocol.cs (1)
78private RouteValueDictionary? _routeValues;
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
236RouteValueDictionary IRouteValuesFeature.RouteValues
Microsoft.AspNetCore.StaticAssets (1)
Development\StaticAssetDevelopmentRuntimeHandler.cs (1)
402public bool Match(HttpContext? httpContext, IRouter? route, string routeKey, RouteValueDictionary values, RouteDirection routeDirection)