Update project references and solution entries to use `PipeClient` and `PipeServer`, and launch the renamed `PipeServer.exe` or `PipeServer.dll`.
20 lines
468 B
C#
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=";
|
|
}
|