MentorExcludeAttribute class
The MentorExcludeAttribute class of Novior.MentorAgent.Attributes: Keeps a class or a method out of the AutoMentor's candidates (MentorAutoMentorOptions)…
On this page
Keeps a class or a method out of the AutoMentor's candidates (MentorAutoMentorOptions): what carries it never becomes an action by discovery, whatever its namespace, and it is not listed in the trace either (candidate.excluded). On a class it covers every method of the class and of the classes derived from it. It does not change an action declared with [MentorAction], [Description] or in code.
[MentorExclude]
public sealed class PaymentGateway { … }
public sealed class OrderService
{
public Order Find(int id) { … }
[MentorExclude]
public void Purge() { … }
}Definition
Section titled “Definition”Namespace: Novior.MentorAgent.Attributes. Package: Novior.MentorAgent.
public sealed class MentorExcludeAttribute : Attribute
dotnet add package Novior.MentorAgentConstructors
Section titled “Constructors”public MentorExcludeAttribute()
