private static void RunVerification(string script, ICompilerSetup compilerSetup) { try { var verifier = new Verifier(compilerSetup); var result = verifier.Verify(script); Console.WriteLine("Script verification successful, only allowed types were used!"); } catch (ScriptVerificationException ex) { Console.WriteLine("Script verification got the following error:"); Console.WriteLine(ex.Message); } }
public Verifier(ICompilerSetup setup) { _setup = setup; }