Skip to content

AgentPrismQuotaOptionsValidator

Namespace AgentPrism · Assembly AgentPrism.Core.dll

Validates AgentPrismQuotaOptions when the application starts.

public sealed class AgentPrismQuotaOptionsValidator : IValidateOptions<AgentPrismQuotaOptions>

objectAgentPrismQuotaOptionsValidator

IValidateOptions<AgentPrismQuotaOptions>

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

This validation is handwritten. ValidateDataAnnotations uses reflection and produces IL2026.

public AgentPrismQuotaOptionsValidator()

Validate(string?, AgentPrismQuotaOptions)

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

name string?

options AgentPrismQuotaOptions

ValidateOptionsResult