From d571a8c877128cca1808a84fb45194d1a1a36b6e Mon Sep 17 00:00:00 2001 From: cypherpotato Date: Tue, 3 Dec 2024 22:25:13 -0300 Subject: [PATCH] wip --- src/Routing/Route.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Routing/Route.cs b/src/Routing/Route.cs index ae27144..2696698 100644 --- a/src/Routing/Route.cs +++ b/src/Routing/Route.cs @@ -171,7 +171,7 @@ internal bool TrySetRouteAction(MethodInfo method, object? target, [NotNullWhen( return false; } } - else if (retType.GetGenericTypeDefinition() == typeof(IAsyncEnumerable<>)) + else if (retType.IsGenericType && retType.GetGenericTypeDefinition() == typeof(IAsyncEnumerable<>)) { this._isAsyncEnumerable = true; if (CheckAsyncReturnParameters(retType) is Exception rex)