add xBotUser Registration in DI ...

This commit is contained in:
2026-11-11 15:46:38 +03:30
parent eecb4ed47d
commit a6496a7d3c
3 changed files with 17 additions and 0 deletions
+14
View File
@@ -1,5 +1,6 @@
using System.Linq;
using xTagService.DI;
using xBotService.DI;
using xDataService.DI;
using xFileService.DI;
using xPushService.DI;
@@ -194,6 +195,12 @@ namespace xServices.DI
isDevelopmentEnvironment: isDevelopmentEnvironment
);
//
// Using Bot Service ...
app.UseXBotService(
isDevelopmentEnvironment: isDevelopmentEnvironment
);
//
// Using Terms and Conditions Service ...
app.UseXTermsAndConditionsService();
@@ -338,6 +345,13 @@ namespace xServices.DI
repositoryType: repositoryType
);
//
// Register Bot Service ...
services.AddXBotService<XApiDbContext>(
lifeTime: lifeTime,
repositoryType: repositoryType
);
//
// Register File Service ...
services.AddXFileService<XApiDbContext>(
+2
View File
@@ -1,5 +1,6 @@
using xDataService.Db;
using xTagService.Providers;
using xBotService.Providers;
using xDataService.Providers;
using xFileService.Providers;
using xStringService.Providers;
@@ -36,6 +37,7 @@ namespace xServices.Databases
nameof(XTagEntityRegisterar),
nameof(XFileEntityRegisterar),
nameof(XStringEntityRegisterar),
nameof(XBotUserEntityRegisterar),
nameof(XContentEntityRegisterar),
nameof(XWebinarEntityRegisterar),
nameof(XCategoryEntityRegisterar),
+1
View File
@@ -31,6 +31,7 @@
<!-- Project Dependencies -->
<ItemGroup>
<ProjectReference Include="..\xCommons\xCommons.csproj" />
<ProjectReference Include="..\xBotService\xBotService.csproj" />
<ProjectReference Include="..\xDataService\xDataService.csproj" />
<ProjectReference Include="..\xPushService\xPushService.csproj" />
<!-- <ProjectReference Include="..\XAiService\XAiService.csproj" /> -->