/// <summary> /// Initializes a new V8 runtime instance with the specified name, resource constraints, options, and debug port. /// </summary> /// <param name="name">A name to associate with the instance. Currently this name is used only as a label in presentation contexts such as debugger user interfaces.</param> /// <param name="constraints">Resource constraints for the instance.</param> /// <param name="flags">A value that selects options for the operation.</param> /// <param name="debugPort">A TCP/IP port on which to listen for a debugger connection.</param> public V8Runtime(string name, V8RuntimeConstraints constraints, V8RuntimeFlags flags, int debugPort) { this.name = nameManager.GetUniqueName(name, GetType().GetRootName()); proxy = V8IsolateProxy.Create(this.name, constraints, flags.HasFlag(V8RuntimeFlags.EnableDebugging), debugPort); }
/// <summary> /// Initializes a new V8 runtime instance with the specified name, resource constraints, options, and debug port. /// </summary> /// <param name="name">A name to associate with the instance. Currently this name is used only as a label in presentation contexts such as debugger user interfaces.</param> /// <param name="constraints">Resource constraints for the instance.</param> /// <param name="flags">A value that selects options for the operation.</param> /// <param name="debugPort">A TCP port on which to listen for a debugger connection.</param> public V8Runtime(string name, V8RuntimeConstraints constraints, V8RuntimeFlags flags, int debugPort) { Name = nameManager.GetUniqueName(name, GetType().GetRootName()); proxy = V8IsolateProxy.Create(Name, constraints, flags, debugPort); }