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

    Class CommandHandlerDescriptor

    Describes a command handler.

    Inheritance
    System.Object
    CommandHandlerDescriptor
    Implements
    ICommandHandlerDescriptor
    System.IEquatable<ICommandHandlerDescriptor>
    Namespace: TehGM.Wolfringo.Commands.Initialization
    Assembly: Wolfringo.Commands.dll
    Syntax
    public class CommandHandlerDescriptor : ICommandHandlerDescriptor, IEquatable<ICommandHandlerDescriptor>

    Constructors

    | Improve this Doc View Source

    CommandHandlerDescriptor(ConstructorInfo, IEnumerable<Object>)

    creates a command handler descriptor.

    Declaration
    public CommandHandlerDescriptor(ConstructorInfo ctor, IEnumerable<object> parameters)
    Parameters
    Type Name Description
    System.Reflection.ConstructorInfo ctor

    Constructor picked for creating the handler instance.

    System.Collections.Generic.IEnumerable<System.Object> parameters

    Dependencies resolved for constructor injection.

    Properties

    | Improve this Doc View Source

    Attribute

    CommandHandler attribute the handler is decorated with.

    Declaration
    public CommandsHandlerAttribute Attribute { get; }
    Property Value
    Type Description
    CommandsHandlerAttribute
    Remarks

    This value might be null if descriptor was force-loaded from a type that wasn't automatically discovered.

    | Improve this Doc View Source

    Constructor

    Constructor picked for creating the handler instance.

    Declaration
    public ConstructorInfo Constructor { get; }
    Property Value
    Type Description
    System.Reflection.ConstructorInfo
    | Improve this Doc View Source

    ConstructorParams

    Dependencies resolved for constructor injection.

    Declaration
    public object[] ConstructorParams { get; }
    Property Value
    Type Description
    System.Object[]
    | Improve this Doc View Source

    Type

    Command handler type.

    Declaration
    public Type Type { get; }
    Property Value
    Type Description
    System.Type

    Methods

    | Improve this Doc View Source

    CreateInstance()

    Creates a new instance of a handler.

    Declaration
    public object CreateInstance()
    Returns
    Type Description
    System.Object

    New handler instance.

    Remarks

    This method will call Constructor, injecting all ConstructorParams.

    | Improve this Doc View Source

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Overrides
    System.Object.Equals(System.Object)
    | Improve this Doc View Source

    Equals(ICommandHandlerDescriptor)

    Declaration
    public bool Equals(ICommandHandlerDescriptor other)
    Parameters
    Type Name Description
    ICommandHandlerDescriptor other
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.Object.GetHashCode()

    Operators

    | Improve this Doc View Source

    Equality(CommandHandlerDescriptor, CommandHandlerDescriptor)

    Declaration
    public static bool operator ==(CommandHandlerDescriptor left, CommandHandlerDescriptor right)
    Parameters
    Type Name Description
    CommandHandlerDescriptor left
    CommandHandlerDescriptor right
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Inequality(CommandHandlerDescriptor, CommandHandlerDescriptor)

    Declaration
    public static bool operator !=(CommandHandlerDescriptor left, CommandHandlerDescriptor right)
    Parameters
    Type Name Description
    CommandHandlerDescriptor left
    CommandHandlerDescriptor right
    Returns
    Type Description
    System.Boolean

    Implements

    ICommandHandlerDescriptor
    System.IEquatable<T>

    Extension Methods

    CommandHandlerDescriptorExtensions.IsPersistent(ICommandHandlerDescriptor)