add support for xStringService Registration and Middlewares Usage ...
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user