Table of Contents

Class EnvironmentOptions

Namespace
Builvero.Application.Options
Assembly
Builvero.Application.dll

Environment configuration options for Builvero. Enforces a single source of truth for environment selection.

public sealed class EnvironmentOptions
Inheritance
EnvironmentOptions
Inherited Members

Fields

SectionName

public const string SectionName = "Environment"

Field Value

string
Environment configuration options for Builvero. Enforces a single source of truth for environment selection.

Properties

BuilveroEnv

The deployment environment. Must be one of: local, staging, production. This is the single source of truth for dependency wiring.

public string BuilveroEnv { get; init; }

Property Value

string
Environment configuration options for Builvero. Enforces a single source of truth for environment selection.

IsCloud

Returns true if the environment is cloud-based (staging or production).

public bool IsCloud { get; }

Property Value

bool
Environment configuration options for Builvero. Enforces a single source of truth for environment selection.

IsLocal

Returns true if the environment is local.

public bool IsLocal { get; }

Property Value

bool
Environment configuration options for Builvero. Enforces a single source of truth for environment selection.

IsProduction

Returns true if the environment is production.

public bool IsProduction { get; }

Property Value

bool
Environment configuration options for Builvero. Enforces a single source of truth for environment selection.

IsStaging

Returns true if the environment is staging.

public bool IsStaging { get; }

Property Value

bool
Environment configuration options for Builvero. Enforces a single source of truth for environment selection.

Methods

Validate()

Validates that BuilveroEnv is set and is a valid value.

public void Validate()

Exceptions

InvalidOperationException

Thrown when BuilveroEnv is not set or invalid.