Extension method for rpc detecting async methods
ADD
WalletWasabi/Extensions/ReflectionExtensions.cs
+using System.Runtime.CompilerServices;
+
+namespace System.Reflection
+{
+ public static class MethodInfoExtensions
+ {
+ public static bool IsAsync(this MethodInfo mi)
+ {
+ Type attType = typeof(AsyncStateMachineAttribute);
+
+ var attrib = (AsyncStateMachineAttribute)mi.GetCustomAttribute(attType);
+
+ return attrib is {};
+ }
+ }
+}

Extension method for rpc detecting async methods