Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP 加上路由的方法 #87

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions src/dotnetCampus.Ipc/IpcRouted/IpcRouted.cs
Original file line number Diff line number Diff line change
@@ -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<IIpcResponseMessage> 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<IIpcRoutedHandler> creator)> collection)
{

}

public IIpcRequestHandler BuildIpcRequestHandler()
{
throw null;
}
}
}