Implemented interface member:
153 references to Add
HttpAbstractions.SampleApp (2)
Program.cs (2)
28
request.RouteValues.
Add
("Param1", "Value1");
29
request.RouteValues.
Add
("Param2", "Value2");
Microsoft.AspNetCore.Http.Abstractions (3)
Routing\RouteValueDictionary.cs (3)
220
Add
(kvp.Key, kvp.Value);
231
Add
(kvp.Key, kvp.Value);
362
Add
(item.Key, item.Value);
Microsoft.AspNetCore.Http.Abstractions.Tests (14)
RouteValueDictionaryTests.cs (14)
824
dict.
Add
("key", "value");
838
dict.
Add
("", "foo");
851
dict.
Add
("key", "value");
879
dict.
Add
("key", "value");
901
ExceptionAssert.ThrowsArgument(() => dict.
Add
("key", "value2"), "key", message);
922
ExceptionAssert.ThrowsArgument(() => dict.
Add
("kEy", "value2"), "key", message);
2043
dict.
Add
("key", "value");
2050
dict.
Add
("key2", "value2");
2051
dict.
Add
("key3", "value3");
2052
dict.
Add
("key4", "value4");
2053
dict.
Add
("key5", "value5");
2065
dict.
Add
("key", "value");
2066
dict.
Add
("key2", "value2");
2067
dict.
Add
("key3", "value3");
Microsoft.AspNetCore.Http.Microbenchmarks (5)
RouteValueDictionaryBenchmark.cs (5)
176
arrayValues.
Add
("name", "Service");
187
propertyValues.
Add
("name", "Service");
198
dictionary.
Add
("action", "Index");
203
dictionary.
Add
("controller", "Home");
208
dictionary.
Add
("area", "Admin");
Microsoft.AspNetCore.Identity (1)
IdentityApiEndpointRouteBuilderExtensions.cs (1)
412
routeValues.
Add
("changedEmail", email);
Microsoft.AspNetCore.Mvc.Core (3)
Routing\AttributeRoute.cs (1)
84
defaults.
Add
(kvp.Key, kvp.Value);
Routing\UrlHelperBase.cs (2)
85
_routeValueDictionary.
Add
(kvp.Key, kvp.Value);
96
_routeValueDictionary.
Add
(kvp.Key, kvp.Value);
Microsoft.AspNetCore.Mvc.Core.Test (61)
ConsumesAttributeTests.cs (1)
412
routeContext.RouteData.Values.
Add
(kvp.Key, kvp.Value);
Formatters\FormatFilterTest.cs (2)
74
data.Values.
Add
("format", "json");
435
data.Values.
Add
("format", format);
Infrastructure\ActionSelectionTableTest.cs (2)
81
values.
Add
(
121
values.
Add
(
Infrastructure\ActionSelectorTest.cs (41)
55
routeContext.RouteData.Values.
Add
("controller", "Home");
56
routeContext.RouteData.Values.
Add
("action", "Index");
95
routeContext.RouteData.Values.
Add
("controller", "Home");
96
routeContext.RouteData.Values.
Add
("action", "Index");
97
routeContext.RouteData.Values.
Add
(
136
routeContext.RouteData.Values.
Add
("controller", "Home");
137
routeContext.RouteData.Values.
Add
("action", "Index");
174
routeContext.RouteData.Values.
Add
("controller", "Foo");
175
routeContext.RouteData.Values.
Add
("action", "Index");
207
routeContext.RouteData.Values.
Add
("controller", "Home");
208
routeContext.RouteData.Values.
Add
("action", "Index");
259
routeContext.RouteData.Values.
Add
("controller", "Home");
260
routeContext.RouteData.Values.
Add
("action", "Index");
311
routeContext.RouteData.Values.
Add
("controller", "HOME");
312
routeContext.RouteData.Values.
Add
("action", "iNDex");
343
routeContext.RouteData.Values.
Add
("area", "");
344
routeContext.RouteData.Values.
Add
("controller", "Home");
345
routeContext.RouteData.Values.
Add
("action", "Index");
377
routeContext.RouteData.Values.
Add
("area", "");
378
routeContext.RouteData.Values.
Add
("controller", "HoMe");
379
routeContext.RouteData.Values.
Add
("action", "InDeX");
411
routeContext.RouteData.Values.
Add
("area", null);
412
routeContext.RouteData.Values.
Add
("controller", "Home");
413
routeContext.RouteData.Values.
Add
("action", "Index");
445
routeContext.RouteData.Values.
Add
("foo", "");
446
routeContext.RouteData.Values.
Add
("controller", "Home");
447
routeContext.RouteData.Values.
Add
("action", "Index");
479
routeContext.RouteData.Values.
Add
("foo", null);
480
routeContext.RouteData.Values.
Add
("controller", "Home");
481
routeContext.RouteData.Values.
Add
("action", "Index");
834
context.RouteData.Values.
Add
("controller", "Store");
835
context.RouteData.Values.
Add
("action", "Buy");
857
routeContext.RouteData.Values.
Add
("controller", "HttpMethodAttributeTests_RestOnly");
858
routeContext.RouteData.Values.
Add
("action", "Patch");
878
routeContext.RouteData.Values.
Add
("controller", "HttpMethodAttributeTests_RestOnly");
879
routeContext.RouteData.Values.
Add
("action", "Put");
896
routeContext.RouteData.Values.
Add
("controller", "HttpMethodAttributeTests_RestOnly");
933
routeContext.RouteData.Values.
Add
("controller", "ActionName");
934
routeContext.RouteData.Values.
Add
("action", "RPCMethodWithHttpGet");
963
routeContext.RouteData.Values.
Add
("controller", "ActionName");
964
routeContext.RouteData.Values.
Add
("action", actionName);
Infrastructure\ControllerActionInvokerTest.cs (1)
46
routeData.Values.
Add
("tag", "value");
RedirectToPageResultTest.cs (1)
91
pageContext.RouteData.Values.
Add
("page", "/A/Redirecting/Page");
Routing\AttributeRouteTest.cs (1)
824
result.
Add
(kvp.Key, kvp.Value);
Routing\MvcRouteHandlerTests.cs (2)
31
context.RouteData.Values.
Add
("controller", "Home");
32
context.RouteData.Values.
Add
("action", "Index");
Routing\UrlHelperTestBase.cs (10)
964
routeData.Values.
Add
("first", "a");
965
routeData.Values.
Add
("controller", "Store");
966
routeData.Values.
Add
("action", "Buy");
1002
routeData.Values.
Add
("first", "a");
1003
routeData.Values.
Add
("second", "x");
1004
routeData.Values.
Add
("controller", "Store");
1005
routeData.Values.
Add
("action", "Buy");
1043
routeData.Values.
Add
("first", "a");
1044
routeData.Values.
Add
("controller", "Store");
1045
routeData.Values.
Add
("action", "Buy");
Microsoft.AspNetCore.Mvc.Razor.Test (2)
RazorViewEngineTest.cs (2)
2124
routeData.Values.
Add
(kvp.Key, kvp.Value);
2139
routeData.Values.
Add
(kvp.Key, kvp.Value);
Microsoft.AspNetCore.Mvc.RazorPages.Test (2)
Infrastructure\PageActionInvokerTest.cs (2)
38
routeData.Values.
Add
("tag", "value");
66
routeData.Values.
Add
("tag", "value");
Microsoft.AspNetCore.Mvc.Routing.Abstractions.Tests (9)
RouteDataTest.cs (9)
28
original.DataTokens.
Add
("data", "token");
30
original.Values.
Add
("route", "value");
84
original.Values.
Add
("bleh", "16");
107
routeData.DataTokens.
Add
("data", "token");
109
routeData.Values.
Add
("route", "value");
128
original.DataTokens.
Add
("data", "token1");
130
original.Values.
Add
("route", "value1");
140
routeData.DataTokens.
Add
("data2", "token");
142
routeData.Values.
Add
("route2", "value");
Microsoft.AspNetCore.OpenApi.Tests (2)
Extensions\OpenApiEndpointRouteBuilderExtensionsTests.cs (2)
61
context.Request.RouteValues.
Add
("documentName", "v1");
123
context.Request.RouteValues.
Add
("documentName", "v2");
Microsoft.AspNetCore.Routing (9)
Patterns\RoutePatternMatcher.cs (2)
194
values.
Add
(kvp.Key, kvp.Value);
474
outValues.
Add
(parameterNeedsValue.Name, new string(parameterValueSpan));
RouteBase.cs (2)
191
pathData.DataTokens.
Add
(dataToken.Key, dataToken.Value);
266
result.
Add
(parameter.Name!, parameter.DefaultValue);
Template\TemplateBinder.cs (2)
398
acceptedValues.
Add
(kvp.Key, kvp.Value);
714
combinedValues.
Add
(kvp.Key, kvp.Value);
Tree\TreeRouteBuilder.cs (2)
152
entry.Defaults.
Add
(parameter.Name, parameter.DefaultValue);
224
entry.Defaults.
Add
(parameter.Name, parameter.DefaultValue);
Tree\TreeRouter.cs (1)
309
inputValues.
Add
(kvp.Key, kvp.Value);
Microsoft.AspNetCore.Routing.Tests (38)
Constraints\FileNameRouteConstraintTest.cs (2)
35
values.
Add
("path", value);
73
values.
Add
("path", value);
Constraints\NonFIleNameRouteConstraintTest.cs (2)
16
values.
Add
("path", value);
33
values.
Add
("path", value);
RouteTest.cs (5)
60
originalRouteDataValues.
Add
("country", "USA");
63
originalDataTokens.
Add
("company", "Contoso");
114
originalRouteDataValues.
Add
("country", "USA");
117
originalDataTokens.
Add
("company", "Contoso");
444
context.RouteData.DataTokens.
Add
("company", "contoso");
Template\TemplateBinderTests.cs (21)
531
ambientValues.
Add
("controller", "UrlRouting");
532
ambientValues.
Add
("action", "Play");
533
ambientValues.
Add
("category", "Photos");
534
ambientValues.
Add
("year", "2008");
535
ambientValues.
Add
("occasion", "Easter");
536
ambientValues.
Add
("SafeParam", "SafeParamValue");
539
values.
Add
("year", String.Empty);
540
values.
Add
("occasion", "Hola");
555
ambientValues.
Add
("Controller", "Test");
556
ambientValues.
Add
("Action", "Fallback");
557
ambientValues.
Add
("param1", "fallback1");
558
ambientValues.
Add
("param2", "fallback2");
559
ambientValues.
Add
("param3", "fallback3");
562
values.
Add
("controller", "subtest");
563
values.
Add
("param1", "b");
577
values.
Add
("controller", "#;?:@&=+$,");
578
values.
Add
("action", "showcategory");
579
values.
Add
("id", 123);
580
values.
Add
("so?rt", "de?sc");
581
values.
Add
("maxPrice", 100);
595
values.
Add
("so?rt", "de?sc");
Tree\TreeRouterTest.cs (8)
144
expectedRouteValues.
Add
(routeValueKeys[i], routeValues[i]);
196
expectedRouteValues.
Add
(routeValueKeys[i], routeValues[i]);
239
expectedRouteValues.
Add
(routeValueKeys[i], routeValues[i]);
1706
originalRouteData.Values.
Add
("path", "default");
1726
originalRouteData.Values.
Add
("path", "default");
1760
routeData.Values.
Add
("action", "Index");
1796
context.RouteData.Values.
Add
("action", "Index");
1839
context.RouteData.Values.
Add
("action", "Index");
Mvc.RoutingWebSite (1)
Controllers\RouteDataController.cs (1)
32
context.RouteData.DataTokens.
Add
("actionName", ((ControllerActionDescriptor)context.ActionDescriptor).ActionName);
RazorPagesWebSite (1)
Pages\CustomModelTypeModel.cshtml.cs (1)
79
RouteData.Values.
Add
(nameof(Attempts), Attempts);