Table of Contents

Class Event

Namespace
MonkeyLoader.Events
Assembly
MonkeyLoader.dll

Marks the base for all event data classes.
Also contains static helper methods.

public abstract class Event
Inheritance
Event
Derived
Inherited Members

Properties

IsAsync

Gets whether this event is an AsyncEvent.

public abstract bool IsAsync { get; }

Property Value

bool

IsCancelable

Gets whether this event can be canceled.

public virtual bool IsCancelable { get; }

Property Value

bool

true if this event implements MonkeyLoader.Events.ICancelableEvent; otherwise, false.

Methods

GetDispatchableBaseEventTypes(Type)

Enumerates all dispatchable base Types of the given eventType.

public static IEnumerable<Type> GetDispatchableBaseEventTypes(Type eventType)

Parameters

eventType Type

The concrete Event Type being analyzed.

Returns

IEnumerable<Type>

Any dispatchable base Types of the eventType.

GetDispatchableEventTypes(Type)

Enumerates all Types in the given Event Type's hierarchy which sources for the eventType should dispatch for.

public static IEnumerable<Type> GetDispatchableEventTypes(Type eventType)

Parameters

eventType Type

The concrete Event Type being analyzed.

Returns

IEnumerable<Type>

The eventType and any dispatchable base Types of it.

GetSubscribableBaseEventTypes(Type)

Enumerates all subscribable base Types of the given eventType.

public static IEnumerable<Type> GetSubscribableBaseEventTypes(Type eventType)

Parameters

eventType Type

The concrete Event Type being analyzed.

Returns

IEnumerable<Type>

Any subscribable base Types of the eventType.

GetSubscribableEventTypes(Type)

Enumerates all Types in the given Event Type's hierarchy which handlers for the eventType should be subscribed to.

public static IEnumerable<Type> GetSubscribableEventTypes(Type eventType)

Parameters

eventType Type

The concrete Event Type being handled.

Returns

IEnumerable<Type>

The eventType and any subscribable base Types of it.

IsAsyncEvent(Type)

Determines whether the given Event Type is an AsyncEvent.

public static bool IsAsyncEvent(Type eventType)

Parameters

eventType Type

The concrete Event Type to check.

Returns

bool

true if it is an AsyncEvent; otherwise, false.

IsBaseEvent(Type)

Determines whether the given Type is a base Event.

public static bool IsBaseEvent(Type type)

Parameters

type Type

The Type to check.

Returns

bool

true if it is a base Event; otherwise, false.

IsCancelableAsyncEvent(Type)

Determines whether the given Event Type is a CancelableAsyncEvent.

public static bool IsCancelableAsyncEvent(Type eventType)

Parameters

eventType Type

The concrete Event Type to check.

Returns

bool

true if it is a CancelableAsyncEvent; otherwise, false.

IsCancelableEvent(Type)

Determines whether the given Event Type is cancelable.

public static bool IsCancelableEvent(Type eventType)

Parameters

eventType Type

The concrete Event Type to check.

Returns

bool

true if it is cancelable; otherwise, false.

IsCancelableSyncEvent(Type)

Determines whether the given Event Type is a CancelableSyncEvent.

public static bool IsCancelableSyncEvent(Type eventType)

Parameters

eventType Type

The concrete Event Type to check.

Returns

bool

true if it is a CancelableSyncEvent; otherwise, false.

IsEvent(Type)

Determines whether the given Type is an Event.

public static bool IsEvent(Type type)

Parameters

type Type

The Type to check.

Returns

bool

true if it is an Event; otherwise, false.

IsSyncEvent(Type)

Determines whether the given Event Type is a SyncEvent.

public static bool IsSyncEvent(Type eventType)

Parameters

eventType Type

The concrete Event Type to check.

Returns

bool

true if it is a SyncEvent; otherwise, false.