This commit is contained in:
2026-09-27 16:08:51 +03:30
parent b596afbe57
commit d638292216
+33
View File
@@ -20,6 +20,10 @@ using System.Collections.Generic;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
using System.ClientModel.Primitives; using System.ClientModel.Primitives;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using xAiModels.Models.Dtos;
using xIdentityModels.Models;
using System.Linq;
using xAiService.Extensions;
namespace xAiApi.Providers namespace xAiApi.Providers
{ {
@@ -333,6 +337,35 @@ namespace xAiApi.Providers
} }
#endregion #endregion
//
#region Data Provider Based Actions ...
public async Task<IEnumerable<XAiProjectDto>> 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
/// <summary> /// <summary>
/// Base Dispose Action ... /// Base Dispose Action ...
/// </summary> /// </summary>