AzureOpenAIProviderOptionsValidator
Namespace AgentPrism · Assembly
AgentPrism.Azure.dllValidates AzureOpenAIProviderOptions when the application starts.
public sealed class AzureOpenAIProviderOptionsValidator : IValidateOptions<AzureOpenAIProviderOptions>Inheritance
Section titled “Inheritance”object ← AzureOpenAIProviderOptionsValidator
Implements
Section titled “Implements”IValidateOptions<AzureOpenAIProviderOptions>
Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”Validation is written by hand; ValidateDataAnnotations relies on
reflection and produces IL2026. AgentPrism.Azure must stay AOT
compatible.
Error messages contain neither the API key nor the endpoint address. Validation messages go to the log and to the startup exception.
Constructors
Section titled “Constructors”AzureOpenAIProviderOptionsValidator()
Section titled “ AzureOpenAIProviderOptionsValidator()”public AzureOpenAIProviderOptionsValidator()Methods
Section titled “Methods”Validate(string?, AzureOpenAIProviderOptions)
Section titled “ Validate(string?, AzureOpenAIProviderOptions)”public ValidateOptionsResult Validate(string? name, AzureOpenAIProviderOptions options)Parameters
Section titled “Parameters”name string?
options AzureOpenAIProviderOptions