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`.
18 lines
364 B
C#
18 lines
364 B
C#
using System.Numerics;
|
|
|
|
namespace ClientServerShared;
|
|
|
|
public interface ICalculator
|
|
{
|
|
int Add(int a, int b);
|
|
Vector3 AddVector(Vector3 a, Vector3 b);
|
|
double Divide(double a, double b);
|
|
Task<string> EchoAsync(string text);
|
|
void Crash(int exitCode);
|
|
}
|
|
|
|
public static class PipeConstants
|
|
{
|
|
public const string PipeNameArgPrefix = "--pipe=";
|
|
}
|