Skip to content

AgentPrismSqlServerOptionsValidator

Namespace AgentPrism · Assembly AgentPrism.SqlServer.dll

Validates AgentPrismSqlServerOptions settings at application startup.

public sealed class AgentPrismSqlServerOptionsValidator : IValidateOptions<AgentPrismSqlServerOptions>

objectAgentPrismSqlServerOptionsValidator

IValidateOptions<AgentPrismSqlServerOptions>

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.

public AgentPrismSqlServerOptionsValidator()

Validate(string?, AgentPrismSqlServerOptions)

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

name string?

options AgentPrismSqlServerOptions

ValidateOptionsResult