Exemplo n.º 1
0
 internal static extern JavaScriptErrorCode JsCreateRuntime(JavaScriptRuntimeAttributes attributes, JavaScriptThreadServiceCallback threadService, out JavaScriptRuntime runtime);
Exemplo n.º 2
0
 internal static extern JavaScriptErrorCode JsCreateRuntime(JavaScriptRuntimeAttributes attributes, JavaScriptThreadServiceCallback threadService, out JavaScriptRuntime runtime);
Exemplo n.º 3
0
 /// <summary>
 /// Creates a new runtime.
 /// </summary>
 /// <param name="attributes">The attributes of the runtime to be created.</param>
 /// <param name="version">The version of the runtime to be created.</param>
 /// <param name="threadServiceCallback">The thread service for the runtime. Can be null.</param>
 /// <returns>The runtime created.</returns>
 public static JavaScriptRuntime Create(JavaScriptRuntimeAttributes attributes, JavaScriptRuntimeVersion version, JavaScriptThreadServiceCallback threadServiceCallback)
 {
     JavaScriptRuntime handle;
     Native.ThrowIfError(Native.JsCreateRuntime(attributes, version, threadServiceCallback, out handle));
     return handle;
 }
Exemplo n.º 4
0
        /// <summary>
        ///     Creates a new runtime.
        /// </summary>
        /// <param name="attributes">The attributes of the runtime to be created.</param>
        /// <param name="version">The version of the runtime to be created.</param>
        /// <param name="threadServiceCallback">The thread service for the runtime. Can be null.</param>
        /// <returns>The runtime created.</returns>
        public static JavaScriptRuntime Create(JavaScriptRuntimeAttributes attributes, JavaScriptRuntimeVersion version, JavaScriptThreadServiceCallback threadServiceCallback)
        {
            JavaScriptRuntime handle;

            Native.ThrowIfError(Native.JsCreateRuntime(attributes, version, threadServiceCallback, out handle));
            return(handle);
        }