use own PipeSerializer

SendToVisualizerAsync uses await
This commit is contained in:
Matthias Heil
2026-04-08 08:20:33 +02:00
parent 96bb165f68
commit 49e94b9b45
6 changed files with 36 additions and 12 deletions
+1 -2
View File
@@ -1,7 +1,6 @@
using CommunityToolkit.Mvvm.ComponentModel;
using PipeMethodCalls;
using PipeMethodCalls.NetJson;
using System;
using System.Diagnostics;
using System.Threading.Tasks;
@@ -25,7 +24,7 @@ public partial class NamedPipesServer(string pipeName,Action<string>? logger = n
if (PipeServer == null || PipeServer.State != PipeState.Connected)
{
PipeServer?.Dispose();
PipeServer = new PipeServer<IDebugVisualizer>(new NetJsonPipeSerializer(), PipeName, () => this);
PipeServer = new PipeServer<IDebugVisualizer>(new PipeSerializer(), PipeName, () => this);
PipeServer.SetLogger((m) => Trace.WriteLine(m));
}
Logger("Waiting for client connection...");