Questa pagina non è ancora tradotta in italiano: qui la trovi in inglese.
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.
Definition
Section titled “Definition”Namespace: Novior.MentorAgent.Abstractions.Models. Package: Novior.MentorAgent.Abstractions.
public static class MentorActionOrigins
dotnet add package Novior.MentorAgent.AbstractionsFields
Section titled “Fields”Attribute
Section titled “Attribute”public const string Attribute = "attribute"
A method found in ScanAssemblies by its [MentorAction] or [Description] attribute.
Candidate
Section titled “Candidate”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.
Command
Section titled “Command”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.
Endpoint
Section titled “Endpoint”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.
Fluent
Section titled “Fluent”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.
