Browse Source
Merge pull request #1017 from Webdiyer/docs
Fix typo in doc files
pull/1020/head
Halil İbrahim Kalkan
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
2 deletions
-
docs/en/Dependency-Injection.md
-
docs/en/Exception-Handling.md
|
|
|
@ -96,7 +96,7 @@ public class TaxCalculator : ITransientDependency |
|
|
|
Another way of configuring a service for dependency injection is to use ``DependencyAttribute``. It has the following properties: |
|
|
|
|
|
|
|
* ``Lifetime``: Lifetime of the registration: ``Singleton``, ``Transient`` or ``Scoped``. |
|
|
|
* ``TryRegister``: Set ``true`` to register the service only it's not registered before. Uses TryAdd... extension methods of IServiceCollection. |
|
|
|
* ``TryRegister``: Set ``true`` to register the service only if it's not registered before. Uses TryAdd... extension methods of IServiceCollection. |
|
|
|
* ``ReplaceServices``: Set ``true`` to replace services if they are already registered before. Uses Replace extension method of IServiceCollection. |
|
|
|
|
|
|
|
Example: |
|
|
|
|
|
|
|
@ -9,7 +9,7 @@ ABP provides a built-in infrastructure and offers a standard model for handling |
|
|
|
|
|
|
|
### Automatic Exception Handling |
|
|
|
|
|
|
|
`AbpExceptionFilter` handles an exception if **any of the following conditions** are meet: |
|
|
|
`AbpExceptionFilter` handles an exception if **any of the following conditions** are met: |
|
|
|
|
|
|
|
* Exception is thrown by a **controller action** which returns an **object result** (not a view result). |
|
|
|
* The request is an AJAX request (`X-Requested-With` HTTP header value is `XMLHttpRequest`). |
|
|
|
|