MentorRuntimeOptions class
The options of MentorOptions that can be changed while the application runs, and from when a change applies.
On this page
The options are one object for the process, the value of IOptions<MentorOptions>. To change one while the application runs, assign its property on that object, and replace a collection rather than change it in place. A turn already running may still read the value from before.
Every option listed is a promise, with a test that changes it on a running application and sees the change apply. Every other option is read before the application starts: set it there. One that is not listed may happen to work when changed later; nothing promises it.
Definition
Section titled “Definition”Namespace: Novior.MentorAgent.Options. Package: Novior.MentorAgent.
public static class MentorRuntimeOptions
dotnet add package Novior.MentorAgentProperties
Section titled “Properties”Changeable
Section titled “Changeable”public static IReadOnlyDictionary<string, MentorOptionReadAt> Changeable { get; }
Every option that can be changed while the application runs, by the name of its MentorOptions property: MentorOptionReadAt.Session when a change applies to the sessions that begin after it, MentorOptionReadAt.Turn when it applies from the next turn of every session.
Methods
Section titled “Methods”IsChangeable
Section titled “IsChangeable”public static bool IsChangeable(string optionName)
Whether the option named optionName, a property of MentorOptions, can be changed while the application runs.
Parameters
optionName: The name of the property, asnameof(MentorOptions.Language)gives it.
