65 writes to ViewContext
Microsoft.AspNetCore.Mvc.TagHelpers.Test (65)
CacheTagHelperTest.cs (25)
48
ViewContext
= GetViewContext(),
75
ViewContext
= GetViewContext(),
103
ViewContext
= GetViewContext(),
125
ViewContext
= GetViewContext(),
154
ViewContext
= GetViewContext(),
176
ViewContext
= GetViewContext(),
238
ViewContext
= GetViewContext(),
339
ViewContext
= GetViewContext(),
360
ViewContext
= GetViewContext(),
392
ViewContext
= GetViewContext(),
414
ViewContext
= GetViewContext(),
445
ViewContext
= GetViewContext(),
467
ViewContext
= GetViewContext(),
514
ViewContext
= GetViewContext(),
580
ViewContext
= GetViewContext(),
586
ViewContext
= GetViewContext(),
663
ViewContext
= GetViewContext(),
669
ViewContext
= GetViewContext(),
744
ViewContext
= GetViewContext(),
807
ViewContext
= GetViewContext(),
813
ViewContext
= GetViewContext(),
854
ViewContext
= GetViewContext(),
859
ViewContext
= GetViewContext(),
894
ViewContext
= GetViewContext(),
900
ViewContext
= GetViewContext(),
CacheTagKeyTest.cs (24)
31
ViewContext
= GetViewContext()
51
ViewContext
= GetViewContext()
57
ViewContext
= GetViewContext()
75
ViewContext
= GetViewContext()
81
ViewContext
= GetViewContext()
99
ViewContext
= GetViewContext()
105
ViewContext
= GetViewContext()
126
ViewContext
= GetViewContext()
132
ViewContext
= GetViewContext()
156
ViewContext
= GetViewContext(),
179
ViewContext
= GetViewContext(),
208
ViewContext
= GetViewContext(),
234
ViewContext
= GetViewContext(),
262
ViewContext
= GetViewContext(),
288
ViewContext
= GetViewContext(),
311
ViewContext
= GetViewContext(),
335
ViewContext
= GetViewContext(),
355
ViewContext
= GetViewContext(),
378
ViewContext
= GetViewContext(),
399
ViewContext
= GetViewContext(),
426
ViewContext
= GetViewContext(),
448
ViewContext
= GetViewContext(),
480
ViewContext
= GetViewContext(),
512
ViewContext
= GetViewContext(),
DistributedCacheTagHelperTest.cs (16)
55
ViewContext
= GetViewContext(),
97
ViewContext
= GetViewContext(),
146
ViewContext
= GetViewContext(),
171
ViewContext
= GetViewContext(),
206
ViewContext
= GetViewContext(),
230
ViewContext
= GetViewContext(),
369
ViewContext
= GetViewContext(),
392
ViewContext
= GetViewContext(),
431
ViewContext
= GetViewContext(),
455
ViewContext
= GetViewContext(),
493
ViewContext
= GetViewContext(),
517
ViewContext
= GetViewContext(),
581
ViewContext
= GetViewContext(),
589
ViewContext
= GetViewContext(),
673
ViewContext
= GetViewContext(),
681
ViewContext
= GetViewContext(),
22 references to ViewContext
Microsoft.AspNetCore.Mvc.TagHelpers (3)
Cache\CacheTagKey.cs (2)
81
var httpContext = tagHelper.
ViewContext
.HttpContext;
93
tagHelper.
ViewContext
.RouteData.Values,
CacheTagHelperBase.cs (1)
54
/// Gets or sets the <see cref="
ViewContext
"/> for the current executing View.
Microsoft.AspNetCore.Mvc.TagHelpers.Test (19)
CacheTagHelperTest.cs (4)
105
cacheTagHelper1.
ViewContext
.HttpContext.Request.QueryString = new QueryString(
127
cacheTagHelper2.
ViewContext
.HttpContext.Request.QueryString = new QueryString(
156
cacheTagHelper1.
ViewContext
.HttpContext.Request.Headers["Cookie"] = "cookie1=value1;cookie2=value2";
178
cacheTagHelper2.
ViewContext
.HttpContext.Request.Headers["Cookie"] = "cookie1=value1;cookie2=not-value2";
CacheTagKeyTest.cs (11)
211
cacheTagHelper.
ViewContext
.HttpContext.Request.Headers["Cookie"] =
237
var headers = cacheTagHelper.
ViewContext
.HttpContext.Request.Headers;
265
cacheTagHelper.
ViewContext
.HttpContext.Request.QueryString =
291
cacheTagHelper.
ViewContext
.RouteData.Values["id"] = 4;
292
cacheTagHelper.
ViewContext
.RouteData.Values["category"] = "MyCategory";
314
cacheTagHelper.
ViewContext
.RouteData.Values["id"] = 4;
315
cacheTagHelper.
ViewContext
.RouteData.Values["category"] =
359
cacheTagHelper.
ViewContext
.HttpContext.User = new ClaimsPrincipal(identity);
404
cacheTagHelper.
ViewContext
.HttpContext.Request.Headers["Content-Type"] = "text/html";
406
cacheTagHelper.
ViewContext
.HttpContext.User = new ClaimsPrincipal(identity);
431
cacheTagHelper.
ViewContext
.HttpContext.Request.Headers["Content-Type"] = "text/html";
DistributedCacheTagHelperTest.cs (4)
148
cacheTagHelper1.
ViewContext
.HttpContext.Request.QueryString = new QueryString(
173
cacheTagHelper2.
ViewContext
.HttpContext.Request.QueryString = new QueryString(
208
cacheTagHelper1.
ViewContext
.HttpContext.Request.Headers["Cookie"] = "cookie1=value1;cookie2=value2";
232
cacheTagHelper2.
ViewContext
.HttpContext.Request.Headers["Cookie"] = "cookie1=value1;cookie2=not-value2";