VoiceOptionsValidator
Namespace AgentPrism · Assembly
AgentPrism.Voice.dllValidates VoiceOptions values while the application STARTS.
public sealed class VoiceOptionsValidator : IValidateOptions<VoiceOptions>Inheritance
Section titled “Inheritance”object ← VoiceOptionsValidator
Implements
Section titled “Implements”IValidateOptions<VoiceOptions>
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 hand-written: ValidateDataAnnotations uses reflection and
breaks AOT compatibility.
The error message never carries the API key. Writing the value while saying the key is wrong would hand the secret to whoever sees the error.
Constructors
Section titled “Constructors”VoiceOptionsValidator()
Section titled “ VoiceOptionsValidator()”public VoiceOptionsValidator()Methods
Section titled “Methods”Validate(string?, VoiceOptions)
Section titled “ Validate(string?, VoiceOptions)”public ValidateOptionsResult Validate(string? name, VoiceOptions options)Parameters
Section titled “Parameters”name string?
options VoiceOptions