add support for xStringService Registration and Middlewares Usage ...
This commit is contained in:
@@ -12,9 +12,11 @@ using xPushService.DI;
|
|||||||
using xPushService.Helpers;
|
using xPushService.Helpers;
|
||||||
using xServices.Configurations;
|
using xServices.Configurations;
|
||||||
using xServices.Constants;
|
using xServices.Constants;
|
||||||
|
using xServices.Databases;
|
||||||
using xServices.Interfaces;
|
using xServices.Interfaces;
|
||||||
using xServices.Providers;
|
using xServices.Providers;
|
||||||
using xStorageService.DI;
|
using xStorageService.DI;
|
||||||
|
using xStringService.DI;
|
||||||
|
|
||||||
namespace xServices.DI
|
namespace xServices.DI
|
||||||
{
|
{
|
||||||
@@ -179,6 +181,12 @@ namespace xServices.DI
|
|||||||
//
|
//
|
||||||
app.UseXPushService(pushHelper);
|
app.UseXPushService(pushHelper);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
//
|
||||||
|
// Using String Service ...
|
||||||
|
app.UseXStringService(
|
||||||
|
isDevelopmentEnvironment: isDevelopmentEnvironment
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -235,7 +243,7 @@ namespace xServices.DI
|
|||||||
//
|
//
|
||||||
// Register DataBase ...
|
// Register DataBase ...
|
||||||
services.AddXDatabase(
|
services.AddXDatabase(
|
||||||
lifetime: lifeTime,
|
lifeTime: lifeTime,
|
||||||
descriptor: database,
|
descriptor: database,
|
||||||
configuration: configuration
|
configuration: configuration
|
||||||
);
|
);
|
||||||
@@ -264,6 +272,13 @@ namespace xServices.DI
|
|||||||
services.AddScoped<IXTestServiceProvider, XTestServiceProvider>();
|
services.AddScoped<IXTestServiceProvider, XTestServiceProvider>();
|
||||||
services.AddScoped<IXTestRepositoryProvider, XTestRepositoryProvider>();
|
services.AddScoped<IXTestRepositoryProvider, XTestRepositoryProvider>();
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
//
|
||||||
|
// String Service ...
|
||||||
|
services.AddXStringService<XApiDbContext>(
|
||||||
|
lifeTime: lifeTime,
|
||||||
|
repositoryType: xDataService.Constants.XRepositoryType.EF
|
||||||
|
);
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,6 +34,7 @@
|
|||||||
<!-- <ProjectReference Include="..\XAiService\XAiService.csproj" /> -->
|
<!-- <ProjectReference Include="..\XAiService\XAiService.csproj" /> -->
|
||||||
<!-- <ProjectReference Include="..\xDataHelper\xDataHelper.csproj" /> -->
|
<!-- <ProjectReference Include="..\xDataHelper\xDataHelper.csproj" /> -->
|
||||||
<!-- <ProjectReference Include="..\xPushHelper\xPushHelper.csproj" /> -->
|
<!-- <ProjectReference Include="..\xPushHelper\xPushHelper.csproj" /> -->
|
||||||
|
<ProjectReference Include="..\xStringService\xStringService.csproj" />
|
||||||
<ProjectReference Include="..\xIdentityHelper\xIdentityHelper.csproj" />
|
<ProjectReference Include="..\xIdentityHelper\xIdentityHelper.csproj" />
|
||||||
<ProjectReference Include="..\xMessageService\xMessageService.csproj" />
|
<ProjectReference Include="..\xMessageService\xMessageService.csproj" />
|
||||||
<ProjectReference Include="..\xStorageService\xStorageService.csproj" />
|
<ProjectReference Include="..\xStorageService\xStorageService.csproj" />
|
||||||
|
|||||||
Reference in New Issue
Block a user