Browse Source

Standardised Pipe Transports to use MessagePack formatting

frogsoftware 3 days ago
parent
commit
b7f48f9254

+ 1 - 1
InABox.Integration.Logikal/InABox.Integration.Logikal.csproj

@@ -8,7 +8,7 @@
     </PropertyGroup>
 
     <ItemGroup>
-      <PackageReference Include="H.Formatters.Newtonsoft.Json" Version="13.0.59" />
+      <PackageReference Include="H.Formatters.Newtonsoft.Json" Version="15.0.0" />
       <PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
     </ItemGroup>
 

+ 3 - 2
InABox.Logging/InABox.Logging.csproj

@@ -21,8 +21,9 @@
     </ItemGroup>
 
     <ItemGroup>
-        <PackageReference Include="H.Formatters.Ceras" Version="2.0.59" />
-        <PackageReference Include="H.Pipes" Version="2.0.59" />
+        <PackageReference Include="H.Formatters.Ceras" Version="15.0.0" />
+        <PackageReference Include="H.Formatters.MessagePack" Version="15.0.0" />
+        <PackageReference Include="H.Pipes" Version="15.0.0" />
     </ItemGroup>
 
     <ItemGroup>

+ 1 - 1
InABox.Logging/NamedPipeLogger.cs

@@ -166,7 +166,7 @@ namespace InABox.Logging
         {
             _name = string.IsNullOrWhiteSpace(name) ? Process.GetCurrentProcess().ProcessName : name;
 
-            _pipe = new PipeServer<string>(_name, formatter:new BinaryFormatter());
+            _pipe = new PipeServer<string>(_name, new MessagePackFormatter());
             _pipe.ClientConnected += _pipe_ClientConnected;
             _pipe.StartAsync();
         }

+ 1 - 1
InABox.Server/IPC/IPCServer.cs

@@ -20,7 +20,7 @@ namespace InABox.IPC
 
         public IPCServer(string name)
         {
-            Server = new PipeServer<IPCMessage>(name, formatter:new BinaryFormatter());
+            Server = new PipeServer<IPCMessage>(name, new MessagePackFormatter<IPCMessage>());
 
             #if WINDOWS
             SetPipeSecurity();

+ 1 - 1
InABox.Server/RPC/Transports/Pipe/RPCServerPipeTransport.cs

@@ -31,7 +31,7 @@ namespace InABox.Rpc
 
         public RpcServerPipeTransport(string name)
         {
-            _transport = new PipeServer<RpcMessage?>(name, formatter:new MessagePackFormatter());
+            _transport = new PipeServer<RpcMessage?>(name, new MessagePackFormatter<RpcMessage>());
 
             #if WINDOWS
             SetPipeSecurity();

+ 1 - 1
inabox.client.ipc/IPCClientTransport.cs

@@ -31,7 +31,7 @@ namespace InABox.Client.IPC
 
         public IPCClientTransport(string pipeName)
         {
-            Client = new PipeClient<IPCMessage>(pipeName, formatter:new BinaryFormatter());
+            Client = new PipeClient<IPCMessage>(pipeName, new MessagePackFormatter<IPCMessage>());
             Client.Connected += Client_Connected;
             Client.Disconnected += Client_Disconnected;
             Client.MessageReceived += Client_MessageReceived;

+ 3 - 2
inabox.client.ipc/InABox.Client.IPC.csproj

@@ -7,8 +7,9 @@
   </PropertyGroup>
 
   <ItemGroup>
-    <PackageReference Include="H.Formatters.BinaryFormatter" Version="2.0.59" />
-    <PackageReference Include="H.Pipes" Version="2.0.59" />
+    <PackageReference Include="H.Formatters.BinaryFormatter" Version="15.0.0" />
+    <PackageReference Include="H.Formatters.MessagePack" Version="15.0.0" />
+    <PackageReference Include="H.Pipes" Version="15.0.0" />
     <PackageReference Include="System.Collections.Immutable" Version="9.0.6" />
   </ItemGroup>
 

+ 1 - 1
inabox.ipc.shared/InABox.IPC.Shared.csproj

@@ -11,7 +11,7 @@
   </ItemGroup>
 
   <ItemGroup>
-    <PackageReference Include="H.Pipes" Version="2.0.59" />
+    <PackageReference Include="H.Pipes" Version="15.0.0" />
     <PackageReference Include="System.Collections.Immutable" Version="9.0.6" />
   </ItemGroup>