Files
PipeMethodCallsDemo/PipeShared/IServerMethods.cs
T
Matthias Heil ae723b9bea Align client and solution with renamed projects
Update project references and solution entries to use
`PipeClient` and `PipeServer`, and launch the renamed
`PipeServer.exe` or `PipeServer.dll`.
2026-11-10 10:57:10 +01:00

20 lines
468 B
C#

using System.Numerics;
namespace PipeShared;
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=";
}