Skip to main content

Definition

Assembly: CloudNimble.Breakdance.DotHttp.dll Namespace: CloudNimble.Breakdance.DotHttp.Models Inheritance: System.Object

Syntax

CloudNimble.Breakdance.DotHttp.Models.DotHttpEnvironment

Summary

Represents the configuration from an http-client.env.json file.

Remarks

Supports $shared variables, environment-specific values, and provider-based secrets.

Examples

{
  "$shared": {
    "ApiVersion": "v2"
  },
  "dev": {
    "HostAddress": "https://localhost:5001"
  },
  "prod": {
    "HostAddress": "https://api.example.com"
  }
}

Constructors

.ctor

Syntax

public DotHttpEnvironment()

.ctor Inherited

Inherited from object

Syntax

public Object()

Properties

Environments

Gets or sets the environment-specific variable sets, keyed by environment name.

Syntax

public System.Collections.Generic.Dictionary<string, System.Collections.Generic.Dictionary<string, CloudNimble.Breakdance.DotHttp.Models.EnvironmentValue>> Environments { get; set; }

Property Value

Type: System.Collections.Generic.Dictionary<string, System.Collections.Generic.Dictionary<string, CloudNimble.Breakdance.DotHttp.Models.EnvironmentValue>>

Remarks

Common environment names include “dev”, “staging”, and “prod”.

Shared

Gets or sets the shared variables that apply to all environments.

Syntax

public System.Collections.Generic.Dictionary<string, CloudNimble.Breakdance.DotHttp.Models.EnvironmentValue> Shared { get; set; }

Property Value

Type: System.Collections.Generic.Dictionary<string, CloudNimble.Breakdance.DotHttp.Models.EnvironmentValue>

Remarks

Parsed from the “$shared” section in http-client.env.json.

Methods

Equals Inherited Virtual

Inherited from object

Syntax

public virtual bool Equals(object obj)

Parameters

NameTypeDescription
objobject?-

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

public static bool Equals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

public virtual int GetHashCode()

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

public System.Type GetType()

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

protected internal object MemberwiseClone()

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

public static bool ReferenceEquals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

public virtual string ToString()

Returns

Type: string?