private void initialize(Object messageHandler)
{
Type handlerType = messageHandler.GetType();
MethodInfo[] methods = handlerType.GetMethods();
foreach (MethodInfo m in methods)
{
if (IsHandlerMethod(m))
{
_handlerMethods[m.GetParameters()[0].ParameterType] = m;
}
}
}