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)
59internal HttpContext? HttpContext => _httpContext; 63if (_httpContext is null) 67else 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"; 72return _httpContext.RequestServices.GetService<IHostEnvironment>()?.IsDevelopment() == true 73? _httpContext.Response.WriteAsync(detailedMessage)
Rendering\EndpointHtmlRenderer.Prerendering.cs (3)
39return new SSRRenderModeBoundary(_httpContext, componentType, renderMode); 121: new SSRRenderModeBoundary(_httpContext, componentType, prerenderMode); 156return await HandleNavigationException(_httpContext, navigationException);
Rendering\EndpointHtmlRenderer.PrerenderingState.cs (6)
23var manager = _httpContext.RequestServices.GetRequiredService<ComponentStatePersistenceManager>(); 44InteractiveServerRenderMode => new ProtectedPrerenderComponentApplicationStore(_httpContext.RequestServices.GetRequiredService<IDataProtectionProvider>()), 65var serverStore = new ProtectedPrerenderComponentApplicationStore(_httpContext.RequestServices.GetRequiredService<IDataProtectionProvider>()); 118switch (GetPersistStateRenderMode(_httpContext)) 136var manager = _httpContext.RequestServices.GetRequiredService<ComponentStatePersistenceManager>(); 143var protectedStore = new ProtectedPrerenderComponentApplicationStore(_httpContext.RequestServices.GetRequiredService<IDataProtectionProvider>());
Rendering\EndpointHtmlRenderer.Streaming.cs (6)
87HandleExceptionAfterResponseStarted(_httpContext, writer, ex); 89await _httpContext.Response.CompleteAsync(); 151var isEnhancedNavigation = IsProgressivelyEnhancedNavigation(_httpContext.Request); 266var marker = boundary.ToMarker(_httpContext, sequenceAndKey.Sequence, sequenceAndKey.Key); 269if (!_httpContext.Response.HasStarted && marker.Type is ComponentMarker.ServerMarkerType or ComponentMarker.AutoMarkerType) 271_httpContext.Response.Headers.CacheControl = "no-cache, no-store, max-age=0";