DiagnosticOverlayProcessor Pennington.Infrastructure
Injects a diagnostic overlay widget into HTML responses during development. Shows a floating badge with warning/error counts that expands to show details. Updates on SPA navigations via the spa:diagnostics custom event. Only active during dev-serve (disabled during static build).
Properties
Orderint- Execution order; lower values run earlier in the response pipeline.
Methods
ProcessAsync
#public Task<string> ProcessAsync(string responseBody, HttpContext context);Transforms responseBody and returns the processed body.
Parameters
responseBodystringcontextHttpContext
Returns
Task<string>ShouldProcess
#public bool ShouldProcess(HttpContext context);Returns true when this processor should run for the current request.
Parameters
contextHttpContext
Returns
boolPennington.Infrastructure.DiagnosticOverlayProcessor
namespace Pennington.Infrastructure;
/// Injects a diagnostic overlay widget into HTML responses during development. Shows a floating badge with warning/error counts that expands to show details. Updates on SPA navigations via the spa:diagnostics custom event. Only active during dev-serve (disabled during static build).
public class DiagnosticOverlayProcessor
{
/// Execution order; lower values run earlier in the response pipeline.
public int Order => 30;
/// Transforms responseBody and returns the processed body.
public Task<string> ProcessAsync(string responseBody, HttpContext context);
/// Returns true when this processor should run for the current request.
public bool ShouldProcess(HttpContext context);
}