private bool IsHandlerAction(MethodInfo method)
{
bool isDefinitionMatch = method.IsPublic &&
method.GetParameters().Length == 1 &&
!method.IsAbstract &&
!method.ContainsGenericParameters &&
!method.IsConstructor &&
!method.IsGenericMethod &&
!method.IsStatic;
return isDefinitionMatch;
}
}