Skip to content

AgentPrismPostgreSqlOptionsValidator

Namespace AgentPrism · Assembly AgentPrism.PostgreSql.dll

Validates AgentPrismPostgreSqlOptions settings at application startup.

public sealed class AgentPrismPostgreSqlOptionsValidator : IValidateOptions<AgentPrismPostgreSqlOptions>

objectAgentPrismPostgreSqlOptionsValidator

IValidateOptions<AgentPrismPostgreSqlOptions>

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Validation is hand-written; ValidateDataAnnotations relies on reflection and produces IL2026. AgentPrism.PostgreSql must stay AOT-compatible.

public AgentPrismPostgreSqlOptionsValidator()

Validate(string?, AgentPrismPostgreSqlOptions)

Section titled “ Validate(string?, AgentPrismPostgreSqlOptions)”
public ValidateOptionsResult Validate(string? name, AgentPrismPostgreSqlOptions options)

name string?

options AgentPrismPostgreSqlOptions

ValidateOptionsResult