示例#1
0
        /// <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;
        }
示例#3
0
 public IpcServerService(IpcContext ipcContext)
 {
     IpcContext = ipcContext;
 }
 public IpcPipeServerMessageProvider(IpcContext ipcContext, IpcServerService ipcServerService)
 {
     IpcContext       = ipcContext;
     IpcServerService = ipcServerService;
 }
示例#5
0
 public PipeServerMessage(IpcContext ipcContext, IpcServerService ipcServerService)
 {
     IpcContext       = ipcContext;
     IpcServerService = ipcServerService;
 }
示例#6
0
 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);
 }
示例#9
0
 public IpcLogger(IpcContext ipcContext)
 {
     IpcContext = ipcContext;
 }
示例#10
0
 public ServerStreamMessageReader(IpcContext ipcContext, Stream stream)
 {
     IpcContext = ipcContext;
     Stream     = stream;
 }
示例#11
0
 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}");
 }