Definition
Assembly: CloudNimble.Breakdance.DotHttp.dll Namespace: CloudNimble.Breakdance.DotHttp Inheritance: System.ObjectSyntax
Summary
Loads and parses http-client.env.json environment files.Remarks
Supports $shared variables, environment-specific values, provider-based secrets, and .user file overrides.Examples
Constructors
.ctor
Syntax
.ctor Inherited
Inherited from
objectSyntax
Methods
Equals Inherited Virtual
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
obj | object? | - |
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetResolvedVariables
Gets the resolved variables for a specific environment, including $shared values.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
environment | CloudNimble.Breakdance.DotHttp.Models.DotHttpEnvironment | The environment configuration. |
environmentName | string | The name of the environment (e.g., “dev”, “staging”). |
Returns
Type:System.Collections.Generic.Dictionary<string, string>
A dictionary of resolved variable names and values.
Examples
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
LoadFromFile
Loads an environment configuration from a JSON file path.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
filePath | string | The path to the http-client.env.json file. |
Returns
Type:CloudNimble.Breakdance.DotHttp.Models.DotHttpEnvironment
A DotHttpEnvironment containing the parsed configuration.
Examples
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
MergeWithUserOverrides
Merges the user override file (.user) with the base environment.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
baseEnvironment | CloudNimble.Breakdance.DotHttp.Models.DotHttpEnvironment | The base environment from http-client.env.json. |
userFilePath | string | The path to the http-client.env.json.user file. |
Returns
Type:CloudNimble.Breakdance.DotHttp.Models.DotHttpEnvironment
The merged environment configuration.
Examples
Remarks
User override values take precedence over base environment values.Parse
Parses environment configuration from JSON content.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
jsonContent | string | The JSON content of the environment file. |
Returns
Type:CloudNimble.Breakdance.DotHttp.Models.DotHttpEnvironment
A DotHttpEnvironment containing the parsed configuration.
Examples
ReferenceEquals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?