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>(