This commit is contained in:
2026-05-28 02:31:21 +03:30
parent 0e57cba3be
commit 93aafe24f8
7 changed files with 150 additions and 1 deletions
+32
View File
@@ -0,0 +1,32 @@
using System;
using System.Linq;
using Microsoft.EntityFrameworkCore.Query;
using Microsoft.Extensions.Logging;
using xCommons.Configurations;
using xCommons.Providers;
using xTagService.Controllers;
using xTagService.Interfaces.Entities;
using xTagService.Models.Entities;
namespace xServices.Controllers
{
public class XTagRepositoryController : XTagRepositoryControllerBase
{
public XTagRepositoryController(
ILogger<XTagRepositoryController> logger,
XAppConfiguration appConfiguration,
XValidationProvider validationProvider,
IXTagRepository repository,
Func<IQueryable<XTag>, IOrderedQueryable<XTag>> defaultOrderBuilder = null,
Func<IQueryable<XTag>, IIncludableQueryable<XTag, object>> defaultIncludeBuilder = null
) : base(
logger,
appConfiguration,
validationProvider,
repository,
defaultOrderBuilder,
defaultIncludeBuilder
)
{ }
}
}
@@ -0,0 +1,35 @@
using System;
using System.Linq;
using Microsoft.EntityFrameworkCore.Query;
using Microsoft.Extensions.Logging;
using xCommons.Configurations;
using xCommons.Providers;
using xIdentityService.Interfaces;
using xTagService.Controllers;
using xTagService.Interfaces.Entities;
using xTagService.Models.Entities;
namespace xServices.Controllers
{
public class XTagRepositoryProviderController : XTagRepositoryProviderControllerBase
{
public XTagRepositoryProviderController(
ILogger<XTagRepositoryProviderController> logger,
XAppConfiguration appConfiguration,
IXIdentityProvider identityProvider,
XValidationProvider validationProvider,
IXTagRepositoryProvider provider,
Func<IQueryable<XTag>, IOrderedQueryable<XTag>> defaultOrderBuilder = null,
Func<IQueryable<XTag>, IIncludableQueryable<XTag, object>> defaultIncludeBuilder = null
) : base(
logger,
appConfiguration,
identityProvider,
validationProvider,
provider,
defaultOrderBuilder,
defaultIncludeBuilder
)
{ }
}
}
+32
View File
@@ -0,0 +1,32 @@
using System;
using System.Linq;
using Microsoft.EntityFrameworkCore.Query;
using Microsoft.Extensions.Logging;
using xCommons.Configurations;
using xCommons.Providers;
using xTagService.Controllers;
using xTagService.Interfaces.Dtos;
using xTagService.Models.Entities;
namespace xServices.Controllers
{
public class XTagServiceController : XTagServiceControllerBase
{
public XTagServiceController(
ILogger<XTagServiceController> logger,
XAppConfiguration appConfiguration,
XValidationProvider validationProvider,
IXTagRepositoryService repositoryService,
Func<IQueryable<XTag>, IOrderedQueryable<XTag>> defaultOrderBuilder = null,
Func<IQueryable<XTag>, IIncludableQueryable<XTag, object>> defaultIncludeBuilder = null
) : base(
logger,
appConfiguration,
validationProvider,
repositoryService,
defaultOrderBuilder,
defaultIncludeBuilder
)
{ }
}
}
@@ -0,0 +1,35 @@
using System;
using System.Linq;
using Microsoft.EntityFrameworkCore.Query;
using Microsoft.Extensions.Logging;
using xCommons.Configurations;
using xCommons.Providers;
using xIdentityService.Interfaces;
using xTagService.Controllers;
using xTagService.Interfaces.Dtos;
using xTagService.Models.Entities;
namespace xServices.Controllers
{
public class XTagServiceProviderController : XTagServiceProviderControllerBase
{
public XTagServiceProviderController(
ILogger<XTagServiceProviderController> logger,
XAppConfiguration appConfiguration,
IXIdentityProvider identityProvider,
XValidationProvider validationProvider,
IXTagServiceProvider provider,
Func<IQueryable<XTag>, IOrderedQueryable<XTag>> defaultOrderBuilder = null,
Func<IQueryable<XTag>, IIncludableQueryable<XTag, object>> defaultIncludeBuilder = null
) : base(
logger,
appConfiguration,
identityProvider,
validationProvider,
provider,
defaultOrderBuilder,
defaultIncludeBuilder
)
{ }
}
}
+14
View File
@@ -17,6 +17,7 @@ using xServices.Interfaces;
using xServices.Providers; using xServices.Providers;
using xStorageService.DI; using xStorageService.DI;
using xStringService.DI; using xStringService.DI;
using xTagService.DI;
using xTermsAndConditionsService.DI; using xTermsAndConditionsService.DI;
namespace xServices.DI namespace xServices.DI
@@ -192,6 +193,12 @@ namespace xServices.DI
// //
// Using Terms and Conditions Service ... // Using Terms and Conditions Service ...
app.UseXTermsAndConditionsService(); app.UseXTermsAndConditionsService();
//
// Using Tag Service ...
app.UseXTagService(
isDevelopmentEnvironment: isDevelopmentEnvironment
);
} }
// //
@@ -291,6 +298,13 @@ namespace xServices.DI
lifeTime: lifeTime, lifeTime: lifeTime,
configuration: configuration configuration: configuration
); );
//
// Register Tag Service ...
services.AddXTagService<XApiDbContext>(
lifeTime: lifeTime,
repositoryType: xDataService.Constants.XRepositoryType.EF
);
} }
#endregion #endregion
} }
+1 -1
View File
@@ -5,6 +5,6 @@ using xServices.Providers;
namespace xServices.Interfaces namespace xServices.Interfaces
{ {
public interface IXTestRepositoryProvider : IXBaseEntityProviderr<XTest, Guid, XTestEntityHub> public interface IXTestRepositoryProvider : IXBaseEntityProvider<XTest, Guid, XTestEntityHub>
{ } { }
} }
+1
View File
@@ -34,6 +34,7 @@
<!-- <ProjectReference Include="..\XAiService\XAiService.csproj" /> --> <!-- <ProjectReference Include="..\XAiService\XAiService.csproj" /> -->
<!-- <ProjectReference Include="..\xDataHelper\xDataHelper.csproj" /> --> <!-- <ProjectReference Include="..\xDataHelper\xDataHelper.csproj" /> -->
<!-- <ProjectReference Include="..\xPushHelper\xPushHelper.csproj" /> --> <!-- <ProjectReference Include="..\xPushHelper\xPushHelper.csproj" /> -->
<ProjectReference Include="..\xTagService\xTagService.csproj" />
<ProjectReference Include="..\xStringService\xStringService.csproj" /> <ProjectReference Include="..\xStringService\xStringService.csproj" />
<ProjectReference Include="..\xIdentityHelper\xIdentityHelper.csproj" /> <ProjectReference Include="..\xIdentityHelper\xIdentityHelper.csproj" />
<ProjectReference Include="..\xMessageService\xMessageService.csproj" /> <ProjectReference Include="..\xMessageService\xMessageService.csproj" />