adding support of Content Service ...

This commit is contained in:
2026-08-18 14:05:54 +03:30
parent cab6c6f717
commit 8e106576c0
3 changed files with 18 additions and 1 deletions
+15
View File
@@ -5,6 +5,7 @@ using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using xCategoryService.DI;
using xCommons.Extensions;
using xContentService.DI;
using xDataService.DI;
using xDataService.Models;
using xFileService.DI;
@@ -215,6 +216,12 @@ namespace xServices.DI
isDevelopmentEnvironment: isDevelopmentEnvironment
);
//
// Using Content Service ...
app.UseXContentService(
isDevelopmentEnvironment: isDevelopmentEnvironment
);
//
// Using XWebinar Service ...
app.UsexWebinarService(
@@ -346,6 +353,14 @@ namespace xServices.DI
repositoryType: repositoryType
);
//
// Register Content Service ...
// services.AddXContentServiceConfiguration(configuration);
services.AddXContentService<XApiDbContext>(
lifeTime: lifeTime,
repositoryType: repositoryType
);
//
// Register Webinar Service ...
services.AddXWebinarService<XApiDbContext>(
+2 -1
View File
@@ -1,5 +1,6 @@
using Microsoft.EntityFrameworkCore;
using xCategoryService.Providers;
using xContentService.Providers;
using xDataService.Configuration;
using xDataService.Db;
using xDataService.Providers;
@@ -8,7 +9,6 @@ using xServices.Models.Entities;
using xStringService.Providers;
using xTagService.Providers;
using xWebinarService.Providers;
// using xStringService.Models.Entities;
namespace xServices.Databases
{
@@ -36,6 +36,7 @@ namespace xServices.Databases
nameof(XTagEntityRegisterar),
nameof(XFileEntityRegisterar),
nameof(XStringEntityRegisterar),
nameof(XContentEntityRegisterar),
nameof(XWebinarEntityRegisterar),
nameof(XCategoryEntityRegisterar),
nameof(XSubCategoryEntityRegisterar),
+1
View File
@@ -39,6 +39,7 @@
<ProjectReference Include="..\xTagService\xTagService.csproj" />
<ProjectReference Include="..\xFileService\xFileService.csproj" />
<ProjectReference Include="..\xStringService\xStringService.csproj" />
<ProjectReference Include="..\XContentService\XContentService.csproj" />
<ProjectReference Include="..\xIdentityHelper\xIdentityHelper.csproj" />
<ProjectReference Include="..\xMessageService\xMessageService.csproj" />
<ProjectReference Include="..\xStorageService\xStorageService.csproj" />