aboutsummaryrefslogtreecommitdiffstats
path: root/src/SyncEndpoint.cs
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2022-11-19 07:52:13 +0100
committerivarlovlie <git@ivarlovlie.no>2022-11-19 07:52:13 +0100
commitf48f101eb0dd6bbdca91d5f50b4ce4194d7369ab (patch)
treed7e659690d0936bd3d08e25d4e5229d76d517a08 /src/SyncEndpoint.cs
downloaddotnet-endpoints-f48f101eb0dd6bbdca91d5f50b4ce4194d7369ab.tar.xz
dotnet-endpoints-f48f101eb0dd6bbdca91d5f50b4ce4194d7369ab.zip
feat: Initial commit
Diffstat (limited to 'src/SyncEndpoint.cs')
-rw-r--r--src/SyncEndpoint.cs34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/SyncEndpoint.cs b/src/SyncEndpoint.cs
new file mode 100644
index 0000000..fc82288
--- /dev/null
+++ b/src/SyncEndpoint.cs
@@ -0,0 +1,34 @@
+namespace I2R.Endpoints;
+
+public static partial class SyncEndpoint<BaseEndpoint>
+{
+ 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