/// <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> /// <returns>The runtime created.</returns> public static JavaScriptRuntime Create(JavaScriptRuntimeAttributes attributes, JavaScriptRuntimeVersion version) { return(Create(attributes, version, null)); }
/// <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, threadServiceCallback, out handle)); return(handle); }
/// <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> /// <returns>The runtime created.</returns> public static JavaScriptRuntime Create(JavaScriptRuntimeAttributes attributes, JavaScriptRuntimeVersion version) { return Create(attributes, version, null); }
/// <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; }
internal static extern JavaScriptErrorCode JsCreateRuntime(JavaScriptRuntimeAttributes attributes, JavaScriptRuntimeVersion runtimeVersion, JavaScriptThreadServiceCallback threadService, out JavaScriptRuntime runtime);
internal static extern JavaScriptErrorCode JsCreateRuntime(JavaScriptRuntimeAttributes attributes, JavaScriptRuntimeVersion runtimeVersion, JavaScriptThreadServiceCallback threadService, out JavaScriptRuntime runtime);