Skip to main content

Definition

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

Syntax

CloudNimble.Breakdance.DotHttp.Models.EnvironmentValue

Summary

Represents a value in the environment configuration.

Remarks

Can be a simple string or a provider-based secret reference (AspnetUserSecrets, AzureKeyVault, etc.).

Examples

// Simple string value
{ "ApiKey": "dev-key-123" }

// Provider-based secret
{
  "ApiKey": {
    "provider": "AzureKeyVault",
    "secretName": "ProdApiKey",
    "resourceId": "/subscriptions/.../vaults/my-vault"
  }
}

Constructors

.ctor

Syntax

public EnvironmentValue()

.ctor Inherited

Inherited from object

Syntax

public Object()

Properties

IsSecret

Gets a value indicating whether this is a provider-based secret.

Syntax

public bool IsSecret { get; }

Property Value

Type: bool

Remarks

Returns true when EnvironmentValue.Provider is not null or empty.

Provider

Gets or sets the provider type for secret resolution.

Syntax

public string Provider { get; set; }

Property Value

Type: string

Remarks

Supported providers include “AspnetUserSecrets”, “AzureKeyVault”, and “Encrypted”.

ResourceId

Gets or sets the Azure resource ID for the AzureKeyVault provider.

Syntax

public string ResourceId { get; set; }

Property Value

Type: string

SecretName

Gets or sets the secret name for provider-based values.

Syntax

public string SecretName { get; set; }

Property Value

Type: string

Value

Gets or sets the simple string value when not using a provider.

Syntax

public string Value { get; set; }

Property Value

Type: string

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

FromString

Creates an EnvironmentValue from a simple string.

Syntax

public static CloudNimble.Breakdance.DotHttp.Models.EnvironmentValue FromString(string value)

Parameters

NameTypeDescription
valuestringThe string value.

Returns

Type: CloudNimble.Breakdance.DotHttp.Models.EnvironmentValue A new EnvironmentValue with the specified value.

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?