From d638292216c5918d3642a51d9f6916ff9a57a4fd Mon Sep 17 00:00:00 2001 From: Hadi Khazaee Asl Date: Sun, 27 Sep 2026 16:08:51 +0330 Subject: [PATCH] last ... --- Providers/XAIServiceBase.cs | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/Providers/XAIServiceBase.cs b/Providers/XAIServiceBase.cs index 0389a9d..93fadc8 100644 --- a/Providers/XAIServiceBase.cs +++ b/Providers/XAIServiceBase.cs @@ -20,6 +20,10 @@ using System.Collections.Generic; using Microsoft.Extensions.Logging; using System.ClientModel.Primitives; using System.Runtime.CompilerServices; +using xAiModels.Models.Dtos; +using xIdentityModels.Models; +using System.Linq; +using xAiService.Extensions; namespace xAiApi.Providers { @@ -333,6 +337,35 @@ namespace xAiApi.Providers } #endregion + // + #region Data Provider Based Actions ... + public async Task> LoadProjects( + string ownerId, + CancellationToken cancellationToken = default + ) + { + // + // Validate Args ... + if (ownerId.IsNullOrEmpty()) + { + XException.InvalidArgs.Throw(); + } + + // + var result = await dataProvider.LoadProjects( + ownerId: ownerId, + cancellationToken: cancellationToken + ); + + // + // Here we have to fill Conversations of Default Project ... + + + // + return result; + } + #endregion + /// /// Base Dispose Action ... ///