1 write to _httpContext
Microsoft.AspNetCore.Components.Endpoints (1)
Rendering\EndpointHtmlRenderer.cs (1)
65
_httpContext
= httpContext;
23 references to _httpContext
Microsoft.AspNetCore.Components.Endpoints (23)
Rendering\EndpointHtmlRenderer.cs (4)
59
internal HttpContext? HttpContext =>
_httpContext
;
63
if (
_httpContext
is null)
67
else if (
_httpContext
!= httpContext)
152
_resourceCollection ??= GetResourceCollection(
_httpContext
) ?? base.Assets;
Rendering\EndpointHtmlRenderer.EventDispatch.cs (4)
70
_httpContext
.Response.StatusCode = 400;
71
_httpContext
.Response.ContentType = "text/plain";
72
return
_httpContext
.RequestServices.GetService<IHostEnvironment>()?.IsDevelopment() == true
73
?
_httpContext
.Response.WriteAsync(detailedMessage)
Rendering\EndpointHtmlRenderer.Prerendering.cs (3)
39
return new SSRRenderModeBoundary(
_httpContext
, componentType, renderMode);
121
: new SSRRenderModeBoundary(
_httpContext
, componentType, prerenderMode);
156
return await HandleNavigationException(
_httpContext
, navigationException);
Rendering\EndpointHtmlRenderer.PrerenderingState.cs (6)
23
var manager =
_httpContext
.RequestServices.GetRequiredService<ComponentStatePersistenceManager>();
44
InteractiveServerRenderMode => new ProtectedPrerenderComponentApplicationStore(
_httpContext
.RequestServices.GetRequiredService<IDataProtectionProvider>()),
65
var serverStore = new ProtectedPrerenderComponentApplicationStore(
_httpContext
.RequestServices.GetRequiredService<IDataProtectionProvider>());
118
switch (GetPersistStateRenderMode(
_httpContext
))
136
var manager =
_httpContext
.RequestServices.GetRequiredService<ComponentStatePersistenceManager>();
143
var protectedStore = new ProtectedPrerenderComponentApplicationStore(
_httpContext
.RequestServices.GetRequiredService<IDataProtectionProvider>());
Rendering\EndpointHtmlRenderer.Streaming.cs (6)
87
HandleExceptionAfterResponseStarted(
_httpContext
, writer, ex);
89
await
_httpContext
.Response.CompleteAsync();
151
var isEnhancedNavigation = IsProgressivelyEnhancedNavigation(
_httpContext
.Request);
266
var marker = boundary.ToMarker(
_httpContext
, sequenceAndKey.Sequence, sequenceAndKey.Key);
269
if (!
_httpContext
.Response.HasStarted && marker.Type is ComponentMarker.ServerMarkerType or ComponentMarker.AutoMarkerType)
271
_httpContext
.Response.Headers.CacheControl = "no-cache, no-store, max-age=0";