Class AgentEnvironments
Describes which environment scope an agent definition belongs to. Environments form a promotion pipeline: Dev → Staging → Production.
public static class AgentEnvironments
- Inheritance
-
AgentEnvironments
- Inherited Members
Fields
All
Ordered environments from lowest to highest.
public static readonly IReadOnlyList<string> All
Field Value
Dev
public const string Dev = "dev"
Field Value
Prod
public const string Prod = "prod"
Field Value
Staging
public const string Staging = "staging"
Field Value
Methods
IsKnown(string?)
Returns whether the supplied environment is one of the supported values.
public static bool IsKnown(string? env)
Parameters
envstring
Returns
NextAfter(string)
Returns the next environment in the promotion chain, or null.
public static string? NextAfter(string env)
Parameters
envstring
Returns
Normalize(string, string)
Normalizes a supported environment name to its canonical lowercase form.
public static string Normalize(string env, string paramName = "environment")