Browse Source
Merge pull request #9237 from abpframework/maliming-patch-di
Update Dependency-Injection.md
pull/9302/head
Halil İbrahim Kalkan
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
3 deletions
-
docs/en/Dependency-Injection.md
|
|
|
@ -59,9 +59,9 @@ Some specific types are registered to dependency injection by default. Examples: |
|
|
|
* MVC controllers (inherit ``Controller`` or ``AbpController``) are registered as transient. |
|
|
|
* MVC page models (inherit ``PageModel`` or ``AbpPageModel``) are registered as transient. |
|
|
|
* MVC view components (inherit ``ViewComponent`` or ``AbpViewComponent``) are registered as transient. |
|
|
|
* Application services (implement ``IApplicationService`` interface or inherit ``ApplicationService`` class) are registered as transient. |
|
|
|
* Repositories (implement ``IRepository`` interface) are registered as transient. |
|
|
|
* Domain services (implement ``IDomainService`` interface) are registered as transient. |
|
|
|
* Application services (inherit ``ApplicationService`` class or its subclasses) are registered as transient. |
|
|
|
* Repositories (implement ``BasicRepositoryBase`` class or its subclasses) are registered as transient. |
|
|
|
* Domain services (implement ``IDomainService`` interface or inherit ``DomainService`` class) are registered as transient. |
|
|
|
|
|
|
|
Example: |
|
|
|
|
|
|
|
|