1 write to _httpContext
Microsoft.AspNetCore.Components.Endpoints (1)
Rendering\EndpointHtmlRenderer.cs (1)
67_httpContext = httpContext;
29 references to _httpContext
Microsoft.AspNetCore.Components.Endpoints (29)
Rendering\EndpointHtmlRenderer.cs (4)
61internal HttpContext? HttpContext => _httpContext; 65if (_httpContext is null) 69else if (_httpContext != httpContext) 160_resourceCollection ??= GetResourceCollection(_httpContext) ?? base.Assets;
Rendering\EndpointHtmlRenderer.EventDispatch.cs (6)
70_httpContext.Response.StatusCode = 400; 71_httpContext.Response.ContentType = "text/plain"; 72return _httpContext.RequestServices.GetService<IHostEnvironment>()?.IsDevelopment() == true 73? _httpContext.Response.WriteAsync(detailedMessage) 79if (_httpContext.Response.HasStarted) 83_httpContext.Response.StatusCode = StatusCodes.Status404NotFound;
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 (10)
88HandleExceptionAfterResponseStarted(_httpContext, writer, ex); 90await _httpContext.Response.CompleteAsync(); 152var isEnhancedNavigation = IsProgressivelyEnhancedNavigation(_httpContext.Request); 267var marker = boundary.ToMarker(_httpContext, sequenceAndKey.Sequence, sequenceAndKey.Key); 270if (!_httpContext.Response.HasStarted && marker.Type is ComponentMarker.ServerMarkerType or ComponentMarker.AutoMarkerType) 272_httpContext.Response.Headers.CacheControl = "no-cache, no-store, max-age=0"; 277if (_httpContext.RequestServices.GetRequiredService<WebAssemblySettingsEmitter>().TryGetSettingsOnce(out var settings)) 323var preloads = _httpContext.GetEndpoint()?.Metadata.GetMetadata<ResourcePreloadCollection>(); 326_httpContext.Response.Headers.Link = StringValues.Concat(_httpContext.Response.Headers.Link, linkHeaders);