adding support of Content Service ...
This commit is contained in:
@@ -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>(
|
||||
|
||||
Reference in New Issue
Block a user