Middleware class to be inserted into the request pipeline which validates Redakt configuration. Renders a server error page when configuration issues are detected.

public class ConfigurationValidationMiddleware
Inheritance:
ObjectConfigurationValidationMiddleware

Constructors

ConfigurationValidationMiddleware(RequestDelegate, ILogger<ConfigurationValidationMiddleware>, IRedaktSystem, ISystemHealth, IOptions<RedaktSystemOptions>) Default constructor. Services are injected by the IoC container.

Methods

Invoke(HttpContext) Invokes middleware request processing. Called by the ASP.NET request pipeline.