Example #1
0
        /// <summary>
        /// Executes compiled C# script file.
        /// Invokes static method 'Main' from the assembly.
        /// </summary>
        private void ExecuteAssembly(string assemblyFile)
        {
            //execute assembly in a different domain to make it possible to unload assembly before clean up
            AssemblyExecutor executor = new AssemblyExecutor(assemblyFile, "AsmExecution");

            executor.Execute(scriptArgs);
        }
 /// <summary>
 /// Executes compiled C# script file.
 /// Invokes static method 'Main' from the assembly.
 /// </summary>
 private void ExecuteAssembly(string assemblyFile)
 {
     //execute assembly in a different domain to make it possible to unload assembly before clean up
     AssemblyExecutor executor = new AssemblyExecutor(assemblyFile, "AsmExecution");
     executor.Execute(scriptArgs);
 }