internal static bool IsAsync(this MethodInfo method) { return typeof(Task).IsAssignableFrom(method.ReturnType); }