This commit is contained in:
2026-05-28 02:30:20 +03:30
parent 0e8c3a9623
commit 172f0806f2
10 changed files with 51 additions and 53 deletions
+47 -3
View File
@@ -6,11 +6,8 @@ it is a Part of xDashboard on SaherElm IT Center which provides:
this module has following dependencies :
- xModels
- xCommons
- xDataService
- xPushService
- xIdentityModels
- xIdentityService
for configure and use this Module refer to DI.XDIHelperExtension.cs file.
@@ -615,6 +612,53 @@ public abstract class XBaseStringResourceProvider : IXBaseStringResourceProvider
}
```
### Controllers
there are some abstraction Layer of Controller Implementation for using Provided Services for managing data.
- **XStringRepositoryControllerBase**: an abstract Controller for Provide Repository Actions (using Entity).
- **XStringRepositoryProviderControllerBase**: an abstract Controller for Provide Repository Actions (using Entity and XEntityHub).
- **XStringServiceControllerBase**: an abstract Controller for Provide Service Actions (using Dto).
- **XStringServiceProviderControllerBase**: an abstract Controller for Provide Service Actions (using Dto and XDtoHub).
- **XBaseStringResourceProviderControllerBase**: an abstract Controller for Provide Actions for Base String Resources.
## Implementation
you have to follow these steps for using this Module.
- **DI Registration**: in this phase, all Provided Services Registered in DI.
- **Middleware Usage**: in this phase, Service Middlewares Use to Handle Features.
```C#
public class Startup
{
//
public void ConfigureServices(IServiceCollection services)
{
...
//
// Register String Service ...
services.AddXStringService<XApiDbContext>(
lifeTime: lifeTime,
repositoryType: xDataService.Constants.XRepositoryType.EF
);
...
}
//
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
...
//
// Using String Service ...
app.UseXStringService(
isDevelopmentEnvironment: isDevelopmentEnvironment
);
...
}
}
```
## Maintainer
Hadi Khazaee asl