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