Skip to content

AgentPrismWebhookOptionsValidator

Namespace AgentPrism · Assembly AgentPrism.Core.dll

Validates AgentPrismWebhookOptions when the application starts.

public sealed class AgentPrismWebhookOptionsValidator : IValidateOptions<AgentPrismWebhookOptions>

objectAgentPrismWebhookOptionsValidator

IValidateOptions<AgentPrismWebhookOptions>

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 AgentPrismWebhookOptionsValidator()

Validate(string?, AgentPrismWebhookOptions)

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

name string?

options AgentPrismWebhookOptions

ValidateOptionsResult