/// <summary> /// 连接其他端,用来发送 /// </summary> /// <param name="ipcContext"></param> /// <param name="peerName">对方</param> internal IpcClientService(IpcContext ipcContext, string peerName = IpcContext.DefaultPipeName) { IpcContext = ipcContext; PeerName = peerName; DoubleBufferTask = new DoubleBufferTask <Func <Task> >(DoTask); }
internal PeerProxy(string peerName, IpcClientService ipcClientService, IpcContext ipcContext) { PeerName = peerName; IpcClientService = ipcClientService; IpcMessageWriter = new IpcMessageWriter(ipcClientService); IpcContext = ipcContext; IpcMessageRequestManager = new IpcMessageRequestManager(); IpcMessageRequestManager.OnIpcClientRequestReceived += ResponseManager_OnIpcClientRequestReceived; }
public IpcServerService(IpcContext ipcContext) { IpcContext = ipcContext; }
public IpcPipeServerMessageProvider(IpcContext ipcContext, IpcServerService ipcServerService) { IpcContext = ipcContext; IpcServerService = ipcServerService; }
public PipeServerMessage(IpcContext ipcContext, IpcServerService ipcServerService) { IpcContext = ipcContext; IpcServerService = ipcServerService; }
public IpcProvider(string pipeName) { IpcContext = new IpcContext(this, pipeName); }
public IpcRequestHandlerProvider(IpcContext ipcContext) { IpcContext = ipcContext; }
internal PeerProxy(string peerName, IpcClientService ipcClientService, IpcInternalPeerConnectedArgs ipcInternalPeerConnectedArgs, IpcContext ipcContext) : this(peerName, ipcClientService, ipcContext) { Update(ipcInternalPeerConnectedArgs); }
public IpcLogger(IpcContext ipcContext) { IpcContext = ipcContext; }
public ServerStreamMessageReader(IpcContext ipcContext, Stream stream) { IpcContext = ipcContext; Stream = stream; }
public AckManager(IpcContext ipcContext) { IpcContext = ipcContext; }
/// <summary> /// 创建对等通讯 /// </summary> /// <param name="pipeName">本地服务名,将作为管道名,管道服务端名</param> /// <param name="ipcConfiguration"></param> public IpcProvider(string pipeName, IpcConfiguration?ipcConfiguration = null) { IpcContext = new IpcContext(this, pipeName, ipcConfiguration); IpcContext.Logger.Debug($"[IpcProvider] 本地服务名 {pipeName}"); }