feat(directory): add cancellation-aware operations

Merged
RE
2mo ago
+183-21

Grain directory callers cannot currently propagate cancellation into directory implementations, so activation shutdown can leave registration work running and stale registrations are replaced non-atomically.

Add backward-compatible cancellation overloads with default cancelable waits, implement linked shutdown/caller cancellation in the distributed directory, propagate activation cancellation through the locator stack, and conditionally replace stale registrations in one register operation.

Microsoft Reviewers: Open in CodeFlow