Files

20 lines
472 B
C#
Raw Permalink Normal View History

2026-11-10 09:23:35 +01:00
using System.Numerics;
namespace PipeShared;
2026-11-10 09:23:35 +01:00
public interface IPipeServerMethods
2026-11-10 09:23:35 +01:00
{
int Add(int a, int b);
Vector3 AddVector(Vector3 a, Vector3 b);
double Divide(double a, double b);
Task<string> EchoAsync(string text);
2026-11-10 10:16:24 +01:00
Task<int> SlowOperationAsync(int delayMs, Guid operationId);
void CancelOperation(Guid operationId);
2026-11-10 09:23:35 +01:00
void Crash(int exitCode);
}
public static class PipeConstants
{
public const string PipeNameArgPrefix = "--pipe=";
}