Implement XAiMcpServer Stuffs ...
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using xPushService.Base;
|
||||
using xAiModels.Models.Dtos;
|
||||
using xAiModels.Interfaces.Dtos;
|
||||
using xAiModels.Models.Entities;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace xAiModels.Providers.Dtos
|
||||
{
|
||||
public class XAiMcpServerDtoHub : XBaseDtoHub<XAiMcpServer, XAiMcpServerDto, Guid>, IXAiMcpServerDtoHub
|
||||
{
|
||||
public XAiMcpServerDtoHub(
|
||||
ILogger<XAiMcpServerDtoHub> logger
|
||||
) : base(logger)
|
||||
{ }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using xAiModels.Models.Dtos;
|
||||
using xDataService.Providers;
|
||||
using xAiModels.Configurations;
|
||||
using xAiModels.Interfaces.Dtos;
|
||||
using xAiModels.Models.Entities;
|
||||
using xAiModels.Interfaces.Entities;
|
||||
using xAiModels.Interfaces.Enrichers;
|
||||
|
||||
namespace xAiModels.Providers.Dtos
|
||||
{
|
||||
public class XAiMcpServerRepositoryService : XBaseRepositoryService<XAiMcpServer, XAiMcpServerDto, Guid>, IXAiMcpServerRepositoryService
|
||||
{
|
||||
private readonly IXAiMcpServerEnricher enricher;
|
||||
private readonly IXAiMcpServerRepository repository;
|
||||
|
||||
public XAiMcpServerRepositoryService(
|
||||
IXAiMcpServerRepository repository,
|
||||
IXAiMcpServerEnricher enricher
|
||||
) : base(repository, mapperProfiles: [new XAiModelMappersProfile()])
|
||||
{
|
||||
this.enricher = enricher;
|
||||
this.repository = repository;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using xPushService.Base;
|
||||
using xAiModels.Models.Dtos;
|
||||
using xAiModels.Interfaces.Dtos;
|
||||
using xAiModels.Models.Entities;
|
||||
using xDataService.Configuration;
|
||||
using xIdentityService.Interfaces;
|
||||
using Microsoft.AspNetCore.SignalR;
|
||||
|
||||
namespace xAiModels.Providers.Dtos
|
||||
{
|
||||
public class XAiMcpServerServiceProvider : XBaseDtoProvider<XAiMcpServer, XAiMcpServerDto, Guid, XAiMcpServerDtoHub>, IXAiMcpServerServiceProvider
|
||||
{
|
||||
public XAiMcpServerServiceProvider(
|
||||
IHubContext<XAiMcpServerDtoHub> hub,
|
||||
XDataServiceConfiguration dataConfiguration,
|
||||
IXAiMcpServerRepositoryService service,
|
||||
IXIdentityProvider identityProvider = null
|
||||
) : base(hub, dataConfiguration, service, identityProvider)
|
||||
{ }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user