From b4730106644c307e6c105ddefcee33d7056b4154 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Mon, 6 Jan 2025 20:44:19 +0100 Subject: [PATCH] Made external data sources also secret IDs --- .../Settings/IExternalDataSource.cs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/app/MindWork AI Studio/Settings/IExternalDataSource.cs b/app/MindWork AI Studio/Settings/IExternalDataSource.cs index ffe08bad..8a7c067c 100644 --- a/app/MindWork AI Studio/Settings/IExternalDataSource.cs +++ b/app/MindWork AI Studio/Settings/IExternalDataSource.cs @@ -1,3 +1,16 @@ +using System.Text.Json.Serialization; + namespace AIStudio.Settings; -public interface IExternalDataSource : IDataSource; \ No newline at end of file +public interface IExternalDataSource : IDataSource, ISecretId +{ + #region Implementation of ISecretId + + [JsonIgnore] + string ISecretId.SecretId => this.Id; + + [JsonIgnore] + string ISecretId.SecretName => this.Name; + + #endregion +} \ No newline at end of file