AI-Studio/app/MindWork AI Studio/Settings/IExternalDataSource.cs

16 lines
387 B
C#

using System.Text.Json.Serialization;
namespace AIStudio.Settings;
public interface IExternalDataSource : IDataSource, ISecretId
{
#region Implementation of ISecretId
[JsonIgnore]
string ISecretId.SecretId => this.IsEnterpriseConfiguration ? $"{ENTERPRISE_KEY_PREFIX}::{this.Id}" : this.Id;
[JsonIgnore]
string ISecretId.SecretName => this.Name;
#endregion
}