Resolve all high-severity architecture review findings

This commit is contained in:
Joseph Doherty
2026-09-09 16:13:58 -04:00
parent 8bfe65512e
commit 146a13238f
192 changed files with 3160 additions and 753 deletions
@@ -151,6 +151,14 @@ public class InboundScriptExecutor
/// <param name="methodName">The method name to remove.</param>
public void RemoveHandler(string methodName) => InvalidateMethod(methodName);
/// <summary>Checks compilation without publishing or invalidating a live handler.</summary>
public bool ValidateCompilation(ApiMethod method, out IReadOnlyList<string> errors)
{
var (handler, diagnostics) = Compile(method);
errors = diagnostics;
return handler is not null;
}
/// <summary>
/// Compiles and registers a single API method script. Returns <c>false</c> if the
/// script is empty, fails Roslyn compilation, or violates the script trust model.