Browse Source

Fix typo in doc files

pull/1017/head
杨涛 7 years ago
parent
commit
dc1ad97c5f
  1. 2
      docs/en/Dependency-Injection.md
  2. 2
      docs/en/Exception-Handling.md

2
docs/en/Dependency-Injection.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:

2
docs/en/Exception-Handling.md

@ -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`).

Loading…
Cancel
Save