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 SourceEventHandlerAttribute()
Declaration
public EventHandlerAttribute()
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 SourceIgnoreCanceled
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 |
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 |