Example #1
0
 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);
     }
 }
Example #2
0
 public Verifier(ICompilerSetup setup)
 {
     _setup = setup;
 }