-
Notifications
You must be signed in to change notification settings - Fork 0
API Host RuntimeOptionsBuilder
Mutable builder used by EngineOptions.WithRuntime.
Back to .NET Host API Reference
Mutable builder used by EngineOptions.WithRuntime.
var options = EngineOptions.Default.WithRuntime(builder => builder.WithHotReload(true).WithStringPooling(StringPoolingStrategy.Intern));Initializes the builder from existing immutable options.
RuntimeOptionsBuilder(RuntimeOptions options)Parameters
| Name | Type | Required | Description |
|---|---|---|---|
options |
RuntimeOptions |
Yes | Options copied into the mutable builder. |
Returns
A new builder instance.
Gets or sets hot-reload behavior.
bool HotReloadParameters
None.
Returns
Returns bool.
Gets or sets the runtime JSON serializer.
ScriptJsonSerializer JsonSerializerParameters
None.
Returns
Returns ScriptJsonSerializer.
Gets or sets the runtime date-time format.
string DateTimeFormatParameters
None.
Returns
Returns string.
Gets or sets the standard-output writer.
TextWriter ConsoleStdOutParameters
None.
Returns
Returns TextWriter.
Gets or sets the error-output writer.
TextWriter ConsoleErrorOutParameters
None.
Returns
Returns TextWriter.
Gets or sets the string-pooling strategy.
StringPoolingStrategy StringPoolingParameters
None.
Returns
Returns StringPoolingStrategy.
Sets HotReload and returns this builder for chaining.
RuntimeOptionsBuilder WithHotReload(bool value)Parameters
| Name | Type | Required | Description |
|---|---|---|---|
value |
bool |
Yes | New value for hot-reload behavior. |
Returns
Returns RuntimeOptionsBuilder.
Sets JsonSerializer and returns this builder for chaining.
RuntimeOptionsBuilder WithJsonSerializer(ScriptJsonSerializer value)Parameters
| Name | Type | Required | Description |
|---|---|---|---|
value |
ScriptJsonSerializer |
Yes | New value for the runtime json serializer. |
Returns
Returns RuntimeOptionsBuilder.
Sets DateTimeFormat and returns this builder for chaining.
RuntimeOptionsBuilder WithDateTimeFormat(string value)Parameters
| Name | Type | Required | Description |
|---|---|---|---|
value |
string |
Yes | New value for the runtime date-time format. |
Returns
Returns RuntimeOptionsBuilder.
Sets ConsoleStdOut and returns this builder for chaining.
RuntimeOptionsBuilder WithConsoleStdOut(TextWriter value)Parameters
| Name | Type | Required | Description |
|---|---|---|---|
value |
TextWriter |
Yes | New value for the standard-output writer. |
Returns
Returns RuntimeOptionsBuilder.
Sets ConsoleErrorOut and returns this builder for chaining.
RuntimeOptionsBuilder WithConsoleErrorOut(TextWriter value)Parameters
| Name | Type | Required | Description |
|---|---|---|---|
value |
TextWriter |
Yes | New value for the error-output writer. |
Returns
Returns RuntimeOptionsBuilder.
Sets StringPooling and returns this builder for chaining.
RuntimeOptionsBuilder WithStringPooling(StringPoolingStrategy value)Parameters
| Name | Type | Required | Description |
|---|---|---|---|
value |
StringPoolingStrategy |
Yes | New value for the string-pooling strategy. |
Returns
Returns RuntimeOptionsBuilder.
AuroraScript.JIT 4.0.0 · Documentation Home · Repository · MIT License