From ae49abcfca9405c41703dece835a28370b33cc9b Mon Sep 17 00:00:00 2001 From: lindexi Date: Thu, 3 Mar 2022 20:19:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=BF=9B=E8=A1=8C=E8=B7=AF?= =?UTF-8?q?=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/dotnetCampus.Ipc/IpcRouted/IpcRouted.cs | 58 +++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 src/dotnetCampus.Ipc/IpcRouted/IpcRouted.cs diff --git a/src/dotnetCampus.Ipc/IpcRouted/IpcRouted.cs b/src/dotnetCampus.Ipc/IpcRouted/IpcRouted.cs new file mode 100644 index 00000000..61f88bb8 --- /dev/null +++ b/src/dotnetCampus.Ipc/IpcRouted/IpcRouted.cs @@ -0,0 +1,58 @@ +using System; +using System.Collections.Generic; +using System.Threading.Tasks; + +using dotnetCampus.Ipc.Context; +using dotnetCampus.Ipc.Messages; +using dotnetCampus.Ipc.Pipes; + +namespace dotnetCampus.Ipc +{ + + class IpcRequestHandler : IIpcRequestHandler + { + public Task HandleRequest(IIpcRequestContext requestContext) + { + throw null; + } + } + + public class IpcRoutedAttribute : Attribute + { + public IpcRoutedAttribute(string path) + { + Path = path; + } + + public string Path { get; } + } + + public interface IIpcRoutedHandler + { + + } + + public class IpcRoutedRequestContext + { + + + public IPeerProxy Peer { get; } + + public IpcMessage IpcMessage { get; } + + + } + + public class IpcRoutedFramework + { + public IpcRoutedFramework(IEnumerable<(IpcRoutedAttribute attribute, Func creator)> collection) + { + + } + + public IIpcRequestHandler BuildIpcRequestHandler() + { + throw null; + } + } +}