Skip to content

GoogleProviderOptionsValidator

Namespace AgentPrism · Assembly AgentPrism.Google.dll

Validates GoogleProviderOptions settings at application startup.

public sealed class GoogleProviderOptionsValidator : IValidateOptions<GoogleProviderOptions>

objectGoogleProviderOptionsValidator

IValidateOptions<GoogleProviderOptions>

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

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

Error messages never include the API key.

public GoogleProviderOptionsValidator()
public ValidateOptionsResult Validate(string? name, GoogleProviderOptions options)

name string?

options GoogleProviderOptions

ValidateOptionsResult