MentorAgent Docs
Menu

Questa pagina non è ancora tradotta in italiano: qui la trovi in inglese.

ReferencePackage: Novior.MentorAgent.Abstractions

MentorActionOrigins class

The MentorActionOrigins class of Novior.MentorAgent.Abstractions.Models: How the application declares an action: the codes of MentorActionRegistration.Origin…

On this page

How the application declares an action: the codes of MentorActionRegistration.Origin and MentorActionInfo.Origin. A code stays the same from one version to the next. The list is open: a later version adds codes for other ways of declaring actions, so read an unknown one as it is.

Namespace: Novior.MentorAgent.Abstractions.Models. Package: Novior.MentorAgent.Abstractions.

public static class MentorActionOrigins

Terminal
dotnet add package Novior.MentorAgent.Abstractions

public const string Attribute = "attribute"

A method found in ScanAssemblies by its [MentorAction] or [Description] attribute.

public const string Candidate = "candidate"

A candidate of the AutoMentor: a public method of a service in the perimeter the code declares (MentorOptions.AutoMentor), with no attribute and no registration. It starts off and asks for a confirmation; an IMentorActionGovernor may turn it on.

public const string Command = "command"

A command registered in code with MentorOptions.Actions.AddCommand: a type of its own, run by its IMentorCommandHandler. Its registration's MentorActionRegistration.Source is the command's type.

public const string Endpoint = "endpoint"

An endpoint of the application, declared with WithMentorAction on a minimal API or with [MentorAction] on a controller's action (Novior.MentorAgent.Server). The action runs the endpoint itself, with its authorization first.

public const string Fluent = "fluent"

A method registered in code, with MentorOptions.Actions.

public const string Page = "page"

The UI actions a page declared in its page context, in Blazor or from the client's snapshot on the hub. A page's registration lists their names only, and they are not in IMentorActionCatalog.GetActions().

public const string Query = "query"

A query registered in code with MentorOptions.Actions.AddQuery: a type of its own, answered by its IMentorQueryHandler, always read-only. Its registration's MentorActionRegistration.Source is the query's type.