EnvironmentConfig
- Namespace:
PPDS.Auth.Profiles - Assembly:
PPDS.Auth - Kind: Class
Summary
User configuration for a specific Dataverse environment. Stores label, type classification, and color override.
Members
Methods
NormalizeUrl
string NormalizeUrl(string url)
Normalizes a URL for use as a lookup key (lowercase, ensures trailing slash).
Properties
Color
Nullable<EnvironmentColor> Color { get; set; }
Explicit color override for this specific environment. Takes priority over type-based color. Null means use type default.
DiscoveredType
string DiscoveredType { get; set; }
Raw environment type from the Discovery API (e.g., "Sandbox", "Developer", "Production"). Stored separately from user Type override. Not user-editable.
Label
string Label { get; set; }
Short label for status bar and tab display (e.g., "Contoso Dev"). Null means use the environment's DisplayName.
Profiles
List<string> Profiles { get; set; }
Profile names that have accessed this environment. Used to filter environments per-profile in the VS Code tree and TUI selector.
Protection
Nullable<ProtectionLevel> Protection { get; set; }
Explicit protection level override. Null means auto-detect from Type.
SafetySettings
QuerySafetySettings SafetySettings { get; set; }
Per-environment query safety settings (DML thresholds, execution options). Null means use defaults for all settings.
Type
Nullable<EnvironmentType> Type { get; set; }
User-configured environment type override. Drives protection levels and default color theming. Null means auto-detect from DiscoveredType or URL heuristics.
Url
string Url { get; set; }
Normalized environment URL (lowercase, trailing slash). This is the key.