Implement XAiMcpServer Stuffs ...

This commit is contained in:
2026-11-02 23:16:50 +03:30
parent 9e7710e345
commit 62aa8d51e6
31 changed files with 641 additions and 7 deletions
@@ -0,0 +1,22 @@
using System;
using xDataService.Db;
using xDataService.Providers;
using xDataService.Interfaces;
using xAiModels.Models.Entities;
using xDataService.Configuration;
using xAiModels.Interfaces.Entities;
namespace xAiModels.Providers.Entities
{
public class XAiMcpServerEFRepository<TContext> : XBaseEFRepository<XAiMcpServer, Guid, TContext>, IXAiMcpServerRepository
where TContext : XDbContext
{
public XAiMcpServerEFRepository(
IXUnitOfWorks<TContext> unitOfWorks,
XDataServiceConfiguration configuration,
IXAiMcpServerKeyGenerator keyGenerator = null,
IXAiMcpServerRepositoryEvents baseRepositoryEvents = null
) : base(unitOfWorks, configuration, keyGenerator, baseRepositoryEvents)
{ }
}
}
@@ -0,0 +1,16 @@
using System;
using xPushService.Base;
using xAiModels.Models.Entities;
using Microsoft.Extensions.Logging;
using xAiModels.Interfaces.Entities;
namespace xAiModels.Providers.Entities
{
public class XAiMcpServerEntityHub : XBaseEntityHub<XAiMcpServer, Guid>, IXAiMcpServerEntityHub
{
public XAiMcpServerEntityHub(
ILogger<XAiMcpServerEntityHub> logger
) : base(logger)
{ }
}
}
@@ -0,0 +1,18 @@
using System;
using xDataService.Providers;
using xAiModels.Models.Entities;
using xDataService.Configuration;
using xAiModels.Interfaces.Entities;
namespace xAiModels.Providers.Entities
{
public class XAiMcpServerInMemoryRepository : XBaseInMemoryRepository<XAiMcpServer, Guid>, IXAiMcpServerRepository
{
public XAiMcpServerInMemoryRepository(
XDataServiceConfiguration configuration,
IXAiMcpServerKeyGenerator keyGenerator = null,
IXAiMcpServerRepositoryEvents baseRepositoryEvents = null
) : base(configuration, keyGenerator, baseRepositoryEvents)
{ }
}
}
@@ -0,0 +1,9 @@
using xDataService.Providers;
using xAiModels.Models.Entities;
using xAiModels.Interfaces.Entities;
namespace xAiModels.Providers.Entities
{
public class XAiMcpServerKeyGenerator : XGuidKeyGenerator<XAiMcpServer>, IXAiMcpServerKeyGenerator
{ }
}
@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using xAiModels.Interfaces.Entities;
using xAiModels.Models.Entities;
using xDataService.Configuration;
using xDataService.Providers;
namespace xAiModels.Providers.Entities
{
public class XAiMcpServerMongoRepository : XBaseMongoRepository<XAiMcpServer, Guid>, IXAiMcpServerRepository
{
public XAiMcpServerMongoRepository(
XDataBaseConfiguration dbConfiguration,
XDataServiceConfiguration configuration,
string collectionName = null,
IXAiMcpServerKeyGenerator keyGenerator = null,
IXAiMcpServerRepositoryEvents baseRepositoryEvents = null
) : base(dbConfiguration, configuration, collectionName, keyGenerator, baseRepositoryEvents)
{ }
}
}
@@ -0,0 +1,9 @@
using xDataService.Providers;
using xAiModels.Models.Entities;
using xAiModels.Interfaces.Entities;
namespace xAiModels.Providers.Entities
{
public class XAiMcpServerRepositoryEvents : XBaseRepositoryEvents<XAiMcpServer>, IXAiMcpServerRepositoryEvents
{ }
}
@@ -0,0 +1,21 @@
using System;
using xPushService.Base;
using xAiModels.Models.Entities;
using xDataService.Configuration;
using xIdentityService.Interfaces;
using Microsoft.AspNetCore.SignalR;
using xAiModels.Interfaces.Entities;
namespace xAiModels.Providers.Entities
{
public class XAiMcpServerRepositoryProvider : XBaseEntityProvider<XAiMcpServer, Guid, XAiMcpServerEntityHub>, IXAiMcpServerRepositoryProvider
{
public XAiMcpServerRepositoryProvider(
IHubContext<XAiMcpServerEntityHub> hub,
IXAiMcpServerRepository repository,
XDataServiceConfiguration dataConfiguration,
IXIdentityProvider identityProvider = null
) : base(hub, repository, dataConfiguration, identityProvider)
{ }
}
}