Class IHandleExtensions
Provides extension methods for types implementing the IHandle interface.
public static class IHandleExtensions
- Inheritance
-
IHandleExtensions
- Inherited Members
Methods
GetHandlers(Type)
Gets all the handler methods from the interfaces implemented by the specified type.
public static MethodInfo[] GetHandlers(this Type type)
Parameters
type
TypeThe type to get the handler methods from.
Returns
- MethodInfo[]
An array of MethodInfo objects representing the handler methods.
GetHandlersLookupTable(Type)
Gets a lookup table of handler methods from the interfaces implemented by the specified type.
public static Dictionary<Type, MethodInfo> GetHandlersLookupTable(this Type type)
Parameters
type
TypeThe type to get the handler methods from.
Returns
- Dictionary<Type, MethodInfo>
A dictionary where the key is the generic type and the value is the MethodInfo of the handler method.