Compare commits

..
2 Commits
Author SHA1 Message Date
Matthias Heil 06763d6c15 Rename shared namespace and preserve pipe handling
Rename `Shared` to `ClientServerShared` across client, server, calculator, interface, and serializer code. Update pipe-name parsing to use ordinal comparison while retaining the `PipeDemo` default. Preserve custom JSON serialization with public field support for `Vector3`.
2026-11-10 09:31:18 +01:00
Matthias Heil d0ef6d2039 Add Visual Studio gitignore rules
Add the generated `.gitignore` file and exclude `/.vs` local configuration and cache files.
2026-11-10 09:30:57 +01:00
6 changed files with 12 additions and 7 deletions
+5
View File
@@ -0,0 +1,5 @@
################################################################################
# This .gitignore file was automatically created by Microsoft(R) Visual Studio.
################################################################################
/.vs
+1 -1
View File
@@ -1,6 +1,6 @@
using System.Diagnostics; using System.Diagnostics;
using PipeMethodCalls; using PipeMethodCalls;
using Shared; using ClientServerShared;
Console.WriteLine("Client started."); Console.WriteLine("Client started.");
+1 -1
View File
@@ -1,5 +1,5 @@
using System.Numerics; using System.Numerics;
using Shared; using ClientServerShared;
namespace Server; namespace Server;
+2 -2
View File
@@ -1,8 +1,8 @@
using ClientServerShared;
using PipeMethodCalls; using PipeMethodCalls;
using Server; using Server;
using Shared;
string pipeName = args.FirstOrDefault(a => a.StartsWith(PipeConstants.PipeNameArgPrefix))? string pipeName = args.FirstOrDefault(static a => a.StartsWith(PipeConstants.PipeNameArgPrefix, StringComparison.Ordinal))?
[PipeConstants.PipeNameArgPrefix.Length..] ?? "PipeDemo"; [PipeConstants.PipeNameArgPrefix.Length..] ?? "PipeDemo";
Console.WriteLine($"Server started. Pipe: {pipeName}"); Console.WriteLine($"Server started. Pipe: {pipeName}");
+1 -1
View File
@@ -1,6 +1,6 @@
using System.Numerics; using System.Numerics;
namespace Shared; namespace ClientServerShared;
public interface ICalculator public interface ICalculator
{ {
+2 -2
View File
@@ -1,7 +1,7 @@
using System.Text.Json;
using PipeMethodCalls; using PipeMethodCalls;
using System.Text.Json;
namespace Shared; namespace ClientServerShared;
/// <summary> /// <summary>
/// JSON serializer that also includes public fields (required for System.Numerics.Vector3). /// JSON serializer that also includes public fields (required for System.Numerics.Vector3).