Class SystemTextJsonEnvironment
Shared environment-variable resolution for the System.Text.Json / Utf8Json engine switch (GitHub issue
#388), used by both OpenSearch.Net.ConnectionConfiguration<T> (the low-level engine) and
OpenSearch.Client.ConnectionSettingsBase (the high-level engine). Each layer's own programmatic
UseSystemTextJson() call takes precedence over this; the two layers select their engines
independently even though they read the same variable.
Inherited Members
Namespace: OpenSearch.Net
Assembly: OpenSearch.Net.dll
Syntax
public static class SystemTextJsonEnvironment
Methods
| Edit this page View SourceReadOverride()
Reads the OSC_USE_STJ environment variable, returning true (System.Text.Json),
false (Utf8Json), or null when it is not set so the caller falls back to its own default.
Declaration
public static bool? ReadOverride()
Returns
| Type | Description |
|---|---|
| bool? |