Search Results for

    Show / Hide Table of Contents

    Class EventHandlerAttribute

    Marks the method as an Event Handler method In order for the method to be called the parent class must implement IEventHandler and be registered with an EventDispatcher

    Inheritance
    System.Object
    EventHandlerAttribute
    Namespace: OpenAPI.Events
    Assembly: OpenAPI.dll
    Syntax
    public class EventHandlerAttribute : Attribute

    Constructors

    | Improve this Doc View Source

    EventHandlerAttribute()

    Declaration
    public EventHandlerAttribute()
    | Improve this Doc View Source

    EventHandlerAttribute(EventPriority, Boolean)

    Declaration
    public EventHandlerAttribute(EventPriority priority, bool ignoreCanceled = false)
    Parameters
    Type Name Description
    EventPriority priority

    The priority to be used for this eventhandler

    System.Boolean ignoreCanceled

    See IgnoreCanceled

    Properties

    | Improve this Doc View Source

    IgnoreCanceled

    Determines whether this method should still be invoked even if another EventHandler has already cancelled the event.

    Declaration
    public bool IgnoreCanceled { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Priority

    Determines when the methhod will be invoked by the EventDispatcher. For more details see EventPriority

    Declaration
    public EventPriority Priority { get; }
    Property Value
    Type Description
    EventPriority
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX