api: allow no parameter on server
This commit is contained in:
@@ -59,7 +59,6 @@ public class ApiServer(string apiUrl) : IApiServer
|
|||||||
|
|
||||||
// Sanity checks
|
// Sanity checks
|
||||||
if (method.GetCustomAttribute<MessageHandlerAttribute>() is not MessageHandlerAttribute attribute
|
if (method.GetCustomAttribute<MessageHandlerAttribute>() is not MessageHandlerAttribute attribute
|
||||||
|| method.GetParameters().FirstOrDefault() is not ParameterInfo parameter
|
|
||||||
|| !method.ReturnType.IsAssignableTo(typeof(ApiResult)))
|
|| !method.ReturnType.IsAssignableTo(typeof(ApiResult)))
|
||||||
{
|
{
|
||||||
if (throwOnError)
|
if (throwOnError)
|
||||||
|
|||||||
Reference in New Issue
Block a user