aboutsummaryrefslogtreecommitdiffstats
path: root/code/lib/SyncEndpoint.cs
diff options
context:
space:
mode:
Diffstat (limited to 'code/lib/SyncEndpoint.cs')
-rw-r--r--code/lib/SyncEndpoint.cs34
1 files changed, 34 insertions, 0 deletions
diff --git a/code/lib/SyncEndpoint.cs b/code/lib/SyncEndpoint.cs
new file mode 100644
index 0000000..f30923a
--- /dev/null
+++ b/code/lib/SyncEndpoint.cs
@@ -0,0 +1,34 @@
+namespace I2R.Endpoints;
+
+public static partial class SyncEndpoint<TBaseEndpoint>
+{
+ public static class Req<TRequest>
+ {
+ public abstract class Res<TResponse>
+ {
+ public abstract TResponse Handle(
+ TRequest request
+ );
+ }
+
+ public abstract class NoRes
+ {
+ public abstract void Handle(
+ TRequest request
+ );
+ }
+ }
+
+ public static class NoReq
+ {
+ public abstract class Res<TResponse>
+ {
+ public abstract TResponse Handle();
+ }
+
+ public abstract class NoRes
+ {
+ public abstract void Handle();
+ }
+ }
+} \ No newline at end of file