JsCreateRuntime() private method

private JsCreateRuntime ( JavaScriptRuntimeAttributes attributes, JavaScriptRuntimeVersion runtimeVersion, JavaScriptThreadServiceCallback threadService, JavaScriptRuntime &runtime ) : JavaScriptErrorCode
attributes JavaScriptRuntimeAttributes
runtimeVersion JavaScriptRuntimeVersion
threadService JavaScriptThreadServiceCallback
runtime JavaScriptRuntime
return JavaScriptErrorCode
Example #1
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);
        }