Harden client/server IPC and cancellation
Use a dedicated server per client run with unique pipes, automatic failure recovery and reconnection, and robust resource cleanup. Add cancellation and timeout support to calculator operations, plus demos covering exceptions, cancellation, timeouts, and server crashes.
This commit is contained in:
@@ -8,6 +8,8 @@ public interface ICalculator
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user