MentorAutoMentorOptions class
The MentorAutoMentorOptions class of Novior.MentorAgent.Options: The AutoMentor's side in the application (MentorOptions.AutoMentor): whether MentorAgent…
On this page
The AutoMentor's side in the application (MentorOptions.AutoMentor): whether MentorAgent looks for methods that could become actions, its candidates, and the perimeter it looks in. The perimeter is the code's only: nothing outside it becomes an action, whatever a service or a document says. A candidate is an action of the coordinator that starts off and asks for a confirmation; an IMentorActionGovernor may turn it on. Read once, at startup. The rules are the candidate area of ACTION-RULES.md.
options.AutoMentor.Enabled = true;
options.AutoMentor.Namespaces = ["Shop.Services"];Definition
Section titled “Definition”Namespace: Novior.MentorAgent.Options. Package: Novior.MentorAgent.
public sealed class MentorAutoMentorOptions
dotnet add package Novior.MentorAgentConstructors
Section titled “Constructors”public MentorAutoMentorOptions()
Properties
Section titled “Properties”Enabled
Section titled “Enabled”public bool Enabled { get; set; }
Whether MentorAgent looks for candidates. Off by default: without it nothing is a candidate (candidate.opt-in).
Namespaces
Section titled “Namespaces”public string[] Namespaces { get; set; }
The perimeter: the namespaces a candidate's class must be in, each with the namespaces under it (Shop.Services covers Shop.Services.Orders, not Shop.ServicesLegacy). Empty, the default, gives no candidate, and a warning in the log says so when MentorAutoMentorOptions.Enabled is on.
public Assembly[] Scan { get; set; }
The assemblies the candidates are taken from. Empty, the default, takes MentorOptions.ScanAssemblies.
