namespace NATS.Server.Protocol; public sealed class ClientCommandMatrix { public bool IsAllowed(ClientKind kind, string? op) { if (string.IsNullOrWhiteSpace(op)) return true; return (kind, op.ToUpperInvariant()) switch { (ClientKind.Router, "RS+") => true, (_, "RS+") => false, _ => true, }; } }