/// <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 IeJsRuntime Create(JsRuntimeAttributes attributes, JsRuntimeVersion version, JsThreadServiceCallback threadServiceCallback)
        {
            IeJsRuntime handle;

            IeJsErrorHelpers.ThrowIfError(IeNativeMethods.JsCreateRuntime(attributes, version, 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 JsRuntime Create(JsRuntimeAttributes attributes, JsRuntimeVersion 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 JsRuntime Create(JsRuntimeAttributes attributes, JsRuntimeVersion version, JsThreadServiceCallback threadServiceCallback)
        {
            JsRuntime handle;
            JsErrorHelpers.ThrowIfError(NativeMethods.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 IeJsRuntime Create(JsRuntimeAttributes attributes, JsRuntimeVersion version)
 {
     return(Create(attributes, version, null));
 }
 internal static extern JsErrorCode JsCreateRuntime(JsRuntimeAttributes attributes, JsRuntimeVersion runtimeVersion, JsThreadServiceCallback threadService, out IeJsRuntime runtime);
Beispiel #6
0
 internal static extern JsErrorCode JsCreateRuntime(JsRuntimeAttributes attributes,
                                                    JsRuntimeVersion runtimeVersion, JsThreadServiceCallback threadService, out IeJsRuntime runtime);