diff --git a/src/BuildingBlocks/StackSdks/Masa.BuildingBlocks.StackSdks.Config/IMasaStackConfig.cs b/src/BuildingBlocks/StackSdks/Masa.BuildingBlocks.StackSdks.Config/IMasaStackConfig.cs index 9c1206819..5b5e849ae 100644 --- a/src/BuildingBlocks/StackSdks/Masa.BuildingBlocks.StackSdks.Config/IMasaStackConfig.cs +++ b/src/BuildingBlocks/StackSdks/Masa.BuildingBlocks.StackSdks.Config/IMasaStackConfig.cs @@ -31,6 +31,8 @@ public interface IMasaStackConfig public bool SingleSsoClient { get; } + public string TscLayer { get; } + string GetValue(string key); Dictionary GetValues(); diff --git a/src/BuildingBlocks/StackSdks/Masa.BuildingBlocks.StackSdks.Config/MasaStackConfigConstant.cs b/src/BuildingBlocks/StackSdks/Masa.BuildingBlocks.StackSdks.Config/MasaStackConfigConstant.cs index 28bdb608e..8e35eaf34 100644 --- a/src/BuildingBlocks/StackSdks/Masa.BuildingBlocks.StackSdks.Config/MasaStackConfigConstant.cs +++ b/src/BuildingBlocks/StackSdks/Masa.BuildingBlocks.StackSdks.Config/MasaStackConfigConstant.cs @@ -20,4 +20,5 @@ public static class MasaStackConfigConstant public const string OTLP_URL = "OTLP_URL"; public const string ADMIN_PWD = "ADMIN_PWD"; public const string DCC_SECRET = "DCC_SECRET"; + public const string TSC_LAYER = "TSC_LAYER"; } diff --git a/src/Contrib/StackSdks/Masa.Contrib.StackSdks.Config/MasaStackConfig.cs b/src/Contrib/StackSdks/Masa.Contrib.StackSdks.Config/MasaStackConfig.cs index b49156ac0..f864b5d80 100644 --- a/src/Contrib/StackSdks/Masa.Contrib.StackSdks.Config/MasaStackConfig.cs +++ b/src/Contrib/StackSdks/Masa.Contrib.StackSdks.Config/MasaStackConfig.cs @@ -53,6 +53,8 @@ public ElasticModel ElasticModel public string DccSecret => GetValue(MasaStackConfigConstant.DCC_SECRET); + public string TscLayer => GetValue(MasaStackConfigConstant.TSC_LAYER); + public bool SingleSsoClient { get; } public List GetProjectList() => this.GetAllServer().Keys.ToList();