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