Resolve all high-severity architecture review findings
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user