Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    SystemTextJsonEnvironment
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: OpenSearch.Net
    Assembly: OpenSearch.Net.dll
    Syntax
    public static class SystemTextJsonEnvironment

    Methods

    | Edit this page View Source

    ReadOverride()

    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?
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX