示例#1
0
 /// <summary>
 /// Creates a pre-compiled script from embedded JS resource
 /// </summary>
 /// <param name="resourceName">The case-sensitive resource name</param>
 /// <param name="assembly">The assembly, which contains the embedded resource</param>
 /// <returns>A pre-compiled script that can be executed by different instances of JS engine</returns>
 public virtual IPrecompiledScript PrecompileResource(string resourceName, Assembly assembly)
 {
     return(InnerEngine.PrecompileResource(resourceName, assembly));
 }
示例#2
0
 /// <summary>
 /// Creates a pre-compiled script from embedded JS resource
 /// </summary>
 /// <param name="resourceName">The case-sensitive resource name without the namespace of the specified type</param>
 /// <param name="type">The type, that determines the assembly and whose namespace is used to scope
 /// the resource name</param>
 /// <returns>A pre-compiled script that can be executed by different instances of JS engine</returns>
 public virtual IPrecompiledScript PrecompileResource(string resourceName, Type type)
 {
     return(InnerEngine.PrecompileResource(resourceName, type));
 }