add support for xStringService Registration and Middlewares Usage ...

This commit is contained in:
2026-05-24 22:45:56 +03:30
parent 362851e12e
commit 46de58631c
2 changed files with 17 additions and 1 deletions
+16 -1
View File
@@ -12,9 +12,11 @@ using xPushService.DI;
using xPushService.Helpers;
using xServices.Configurations;
using xServices.Constants;
using xServices.Databases;
using xServices.Interfaces;
using xServices.Providers;
using xStorageService.DI;
using xStringService.DI;
namespace xServices.DI
{
@@ -179,6 +181,12 @@ namespace xServices.DI
//
app.UseXPushService(pushHelper);
#endregion
//
// Using String Service ...
app.UseXStringService(
isDevelopmentEnvironment: isDevelopmentEnvironment
);
}
//
@@ -235,7 +243,7 @@ namespace xServices.DI
//
// Register DataBase ...
services.AddXDatabase(
lifetime: lifeTime,
lifeTime: lifeTime,
descriptor: database,
configuration: configuration
);
@@ -264,6 +272,13 @@ namespace xServices.DI
services.AddScoped<IXTestServiceProvider, XTestServiceProvider>();
services.AddScoped<IXTestRepositoryProvider, XTestRepositoryProvider>();
#endregion
//
// String Service ...
services.AddXStringService<XApiDbContext>(
lifeTime: lifeTime,
repositoryType: xDataService.Constants.XRepositoryType.EF
);
}
#endregion
}
+1
View File
@@ -34,6 +34,7 @@
<!-- <ProjectReference Include="..\XAiService\XAiService.csproj" /> -->
<!-- <ProjectReference Include="..\xDataHelper\xDataHelper.csproj" /> -->
<!-- <ProjectReference Include="..\xPushHelper\xPushHelper.csproj" /> -->
<ProjectReference Include="..\xStringService\xStringService.csproj" />
<ProjectReference Include="..\xIdentityHelper\xIdentityHelper.csproj" />
<ProjectReference Include="..\xMessageService\xMessageService.csproj" />
<ProjectReference Include="..\xStorageService\xStorageService.csproj" />