Huge refactor; Passing tests

This commit is contained in:
GHXX committed 2024-01-13 01:31:30 +01:00
1 parent 3e307c27fa
commit 09fa3b8734
18 files changed
+577 -162

No files matched your search

@@ -0,0 +1,12 @@
using System.Reflection;
namespace SimpleHttpServer.Types;
internal struct EndpointInvocationInfo {
internal readonly MethodInfo methodInfo;
internal readonly List<(string, (Type type, bool isOptional))> queryParameters;
public EndpointInvocationInfo(MethodInfo methodInfo, List<(string, (Type type, bool isOptional))> queryParameters) {
this.methodInfo = methodInfo ?? throw new ArgumentNullException(nameof(methodInfo));
this.queryParameters = queryParameters ?? throw new ArgumentNullException(nameof(queryParameters));
}
}