Add EnterpriseEnvironment record struct to manage configuration state

This commit is contained in:
Thorsten Sommer 2025-06-01 20:57:43 +02:00
parent 83d7ab6917
commit a8d96c9dd7
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -0,0 +1,6 @@
namespace AIStudio.Tools;
public readonly record struct EnterpriseEnvironment(string ConfigurationServerUrl, Guid ConfigurationId)
{
public bool IsActive => !string.IsNullOrEmpty(this.ConfigurationServerUrl) && this.ConfigurationId != Guid.Empty;
}