Skip to content

AgentPrismOptionsValidator

Namespace AgentPrism · Assembly AgentPrism.Core.dll

Validates AgentPrismOptions during application startup.

public sealed class AgentPrismOptionsValidator : IValidateOptions<AgentPrismOptions>

objectAgentPrismOptionsValidator

IValidateOptions<AgentPrismOptions>

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

Validation is written manually; ValidateDataAnnotations is not used. DataAnnotations validation uses reflection and produces IL2026. AgentPrism.Core must remain AOT-compatible.

public AgentPrismOptionsValidator()
public ValidateOptionsResult Validate(string? name, AgentPrismOptions options)

name string?

options AgentPrismOptions

ValidateOptionsResult