last ...
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user