Wolfringo Wolfringo
Wolfringo Wolfringo
Wolfringo (c) 2020 TehGM
DocFX, DiscordFX theme.
Search Results for

    Class CommandsHandlerConstructorAttribute

    Marks handler's constructor as a constructor for Commands System.

    Inheritance
    System.Object
    System.Attribute
    CommandsHandlerConstructorAttribute
    Namespace: TehGM.Wolfringo.Commands
    Assembly: Wolfringo.Commands.dll
    Syntax
    [AttributeUsage(AttributeTargets.Constructor, AllowMultiple = true, Inherited = false)]
    public class CommandsHandlerConstructorAttribute : Attribute
    Remarks

    By default, Commands System will only look at public constructors of the handler, on order depending on parameters count, from highest to lowest. This attribute allows for marking a specific constructor to be used. Marked constructor can be private.

    If multiple constructors are marked, Priority is used. Constructor with higher priority will always be tested first. If multiple constructors have the same priority, they're attempted in order depending on parameters count, from highest to lowest.

    Constructors

    | Improve this Doc View Source

    CommandsHandlerConstructorAttribute()

    Creates a new CommandHandlerConstructor attribute.

    Declaration
    public CommandsHandlerConstructorAttribute()
    Remarks

    See CommandsHandlerConstructorAttribute for more information about handler constructor priorities.

    | Improve this Doc View Source

    CommandsHandlerConstructorAttribute(Int32)

    Creates a new CommandHandlerConstructor attribute.

    Declaration
    public CommandsHandlerConstructorAttribute(int priority)
    Parameters
    Type Name Description
    System.Int32 priority

    Constructor's priority.

    Remarks

    See CommandsHandlerConstructorAttribute for more information about handler constructor priorities.

    Properties

    | Improve this Doc View Source

    Priority

    Constructor's priority.

    Declaration
    public int Priority { get; }
    Property Value
    Type Description
    System.Int32
    Remarks

    See CommandsHandlerConstructorAttribute for more information about handler constructor priorities.