System Library Common Framework
Search Results for

    *.Benchmark*,*.Tests*,*.ApiTests*,*.BaseTest*,DelegateJsonConverter,CalleeCancelledRequestException,ClientResponse,ContentType,OutputCachePolicy
    Show / Hide Table of Contents Show / Hide Table of Contents
    NamespaceSystemLibrary.Common.Framework SystemLibrary.Common.Framework.Net.dll

    Standard class for environmental configurations read from environmentConfig.json if exists

    If you've added more properties to environmentConfig.json than just the 'Name' you'd have to inherit 'EnvironmentConfig<YourClass>' and use that instead

    Remarks
    X

    See the documentation for 'Name' property on class 'EnvironmentConfig<>' for more details regarding transformations

    EnvironmentConfig

    public class EnvironmentConfig : EnvironmentConfig<EnvironmentConfig, EnvironmentName>

    Inheritance
    object
    Config<EnvironmentConfig>
    EnvironmentConfig<EnvironmentConfig, EnvironmentName>
    EnvironmentConfig
    Inherited Members
    EnvironmentConfig<EnvironmentConfig, EnvironmentName>.EnvironmentName
    EnvironmentConfig<EnvironmentConfig, EnvironmentName>.Name
    Config<EnvironmentConfig>.Current
    Examples
    Arguments
    X

    Fields

    Returns the application's root folder full path.

    Does not end with a slash.

    If the folder is 'bin' or inside it, the method will traverse up and return the parent folder of the 'bin' folder. Exceptions is if assembly ends in Tests for test projects, then 'up-traversal out of bin' is skipped

    Remarks
    X

    See the documentation for 'Name' property on class 'EnvironmentConfig<>' for more details regarding transformations

    public static readonly string ContentRootPath

    X
    Field Value
    Type Description
    string

    Properties

    Returns true if both IsTest and IsProd are false.

    Remarks
    X

    See the documentation for 'Name' property on class 'EnvironmentConfig<>' for more details regarding transformations

    public static bool IsLocal { get; }

    X
    Property Value
    Type Description
    bool

    Returns true if the environment is set to 'prod' or 'production', otherwise false.

    Remarks
    X

    See the documentation for 'Name' property on class 'EnvironmentConfig<>' for more details regarding transformations

    public static bool IsProd { get; }

    X
    Property Value
    Type Description
    bool

    Returns true if both IsLocal and IsProd are false

    Note: returns true for Test, PreProduction, Sandbox, Stage, QA and more...

    Remarks
    X

    See the documentation for 'Name' property on class 'EnvironmentConfig<>' for more details regarding transformations

    public static bool IsTest { get; }

    X
    Property Value
    Type Description
    bool

    Extension Methods

    ObjectExtensions.Json(object, bool)
    ObjectExtensions.Json(object, JsonSerializerOptions, bool, params JsonConverter[])
    ObjectExtensions.Json(object, params JsonConverter[])
    ObjectExtensions.Xml(object)

    }

    In This Article
    Package: nuget
    Source: github
    Website: System Library Common Framework