private void DataReceived(object sender, PipeBaseEventArgs args) { PipeBaseForServer server = (PipeBaseForServer)sender; byte[] reply = args.Data; this.pipeFunction(ref reply); server.WriteBytes(reply); }
private void OnReceive(object sender, PipeBaseEventArgs args) { byte[] data = args.Data; string received = Encoding.UTF8.GetString(data); this.replyData = received; SetStatus(PipePacketStatus.Success); //CommonLog.WriteLog(LogLevel.Debug, "Client received: " + received); }