MentorAgent Docs
Menu

ReferencePackage: Novior.MentorAgent

MentorExcludeAttribute class

The MentorExcludeAttribute class of Novior.MentorAgent.Attributes: Keeps a class or a method out of the AutoMentor's candidates (MentorAutoMentorOptions)…

View as Markdown
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.

Example
[MentorExclude]
public sealed class PaymentGateway { … }

public sealed class OrderService
{
    public Order Find(int id) { … }

    [MentorExclude]
    public void Purge() { … }
}

Namespace: Novior.MentorAgent.Attributes. Package: Novior.MentorAgent.

public sealed class MentorExcludeAttribute : Attribute

Terminal
dotnet add package Novior.MentorAgent

public MentorExcludeAttribute()