Replace ICalculator with IServerMethods

Rename the server implementation and update client/server pipes to use
the shared server-methods interface. Move PipeConstants alongside it and
log “Client started.” during client startup.
This commit is contained in:
Matthias Heil
2026-11-10 10:42:57 +01:00
parent 23c2a9ea16
commit d618bac679
4 changed files with 8 additions and 8 deletions
+19
View File
@@ -0,0 +1,19 @@
using System.Numerics;
namespace ClientServerShared;
public interface IServerMethods
{
int Add(int a, int b);
Vector3 AddVector(Vector3 a, Vector3 b);
double Divide(double a, double b);
Task<string> EchoAsync(string text);
Task<int> SlowOperationAsync(int delayMs, Guid operationId);
void CancelOperation(Guid operationId);
void Crash(int exitCode);
}
public static class PipeConstants
{
public const string PipeNameArgPrefix = "--pipe=";
}