Compare commits
1
Commits
b596afbe57
...
d638292216
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d638292216 |
@@ -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<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>
|
||||
/// Base Dispose Action ...
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user