8 writes to ViewContext
Microsoft.AspNetCore.Mvc.TagHelpers.Test (8)
PersistComponentStateTagHelperTest.cs (8)
39
ViewContext
= GetViewContext()
60
ViewContext
= GetViewContext(),
82
ViewContext
= GetViewContext(),
111
ViewContext
= GetViewContext()
141
ViewContext
= GetViewContext(),
172
ViewContext
= GetViewContext(),
193
ViewContext
= GetViewContext()
225
ViewContext
= GetViewContext()
10 references to ViewContext
Microsoft.AspNetCore.Mvc.TagHelpers (2)
PersistComponentStateTagHelper.cs (2)
46
var componentPrerenderer =
ViewContext
.HttpContext.RequestServices.GetRequiredService<IComponentPrerenderer>();
55
var content = await componentPrerenderer.PrerenderPersistedStateAsync(
ViewContext
.HttpContext, serializationMode);
Microsoft.AspNetCore.Mvc.TagHelpers.Test (8)
PersistComponentStateTagHelperTest.cs (8)
88
var manager = tagHelper.
ViewContext
.HttpContext.RequestServices.GetRequiredService<ComponentStatePersistenceManager>();
114
EndpointHtmlRenderer.UpdateSaveStateRenderMode(tagHelper.
ViewContext
.HttpContext, RenderMode.InteractiveWebAssembly);
118
var manager = tagHelper.
ViewContext
.HttpContext.RequestServices.GetRequiredService<ComponentStatePersistenceManager>();
147
var manager = tagHelper.
ViewContext
.HttpContext.RequestServices.GetRequiredService<ComponentStatePersistenceManager>();
196
EndpointHtmlRenderer.UpdateSaveStateRenderMode(tagHelper.
ViewContext
.HttpContext, Components.Web.RenderMode.InteractiveServer);
200
var manager = tagHelper.
ViewContext
.HttpContext.RequestServices.GetRequiredService<ComponentStatePersistenceManager>();
228
EndpointHtmlRenderer.UpdateSaveStateRenderMode(tagHelper.
ViewContext
.HttpContext, Components.Web.RenderMode.InteractiveServer);
229
EndpointHtmlRenderer.UpdateSaveStateRenderMode(tagHelper.
ViewContext
.HttpContext, Components.Web.RenderMode.InteractiveWebAssembly);