Skip to content

Commit

Permalink
fixed grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
maximv committed Feb 26, 2021
1 parent 0ef9d64 commit 94f7d9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/DryIoc.Docs/RegisterResolve.cs
Original file line number Diff line number Diff line change
Expand Up @@ -783,10 +783,10 @@ Another alternative would be the **RegisterDelegate with the dependency paramete
### The cure - RegisterDelegate with the dependency parameters
It solves the two problems mentioned in the [RegisterDelegate](#registerdelegate) above because
it **injects** the requested dependencies as a delegate arguments so there is no need in calling `Resolve` inside.
it **injects** the requested dependencies as the delegate arguments so there is no need to call `Resolve` inside the delegate.
- The dependencies injection and their lifetime is controlled by container
- There is no black-box service location involved and both [Recursive Dependency](ErrorDetectionAndResolution.md#RecursiveDependencyDetected) and [Captive Dependency](ErrorDetectionAndResolution.md#using-validate-to-check-for-captive-dependency) problems are catched by container.
- There is no black-box service location involved and both the [Recursive Dependency](ErrorDetectionAndResolution.md#RecursiveDependencyDetected) and the [Captive Dependency](ErrorDetectionAndResolution.md#using-validate-to-check-for-captive-dependency) problems are catched by the container.
The example:
```cs md*/
Expand Down
4 changes: 2 additions & 2 deletions docs/DryIoc.Docs/RegisterResolve.md
Original file line number Diff line number Diff line change
Expand Up @@ -782,10 +782,10 @@ Another alternative would be the **RegisterDelegate with the dependency paramete
### The cure - RegisterDelegate with the dependency parameters

It solves the two problems mentioned in the [RegisterDelegate](#registerdelegate) above because
it **injects** the requested dependencies as a delegate arguments so there is no need in calling `Resolve` inside.
it **injects** the requested dependencies as the delegate arguments so there is no need to call `Resolve` inside the delegate.

- The dependencies injection and their lifetime is controlled by container
- There is no black-box service location involved and both [Recursive Dependency](ErrorDetectionAndResolution.md#RecursiveDependencyDetected) and [Captive Dependency](ErrorDetectionAndResolution.md#using-validate-to-check-for-captive-dependency) problems are catched by container.
- There is no black-box service location involved and both the [Recursive Dependency](ErrorDetectionAndResolution.md#RecursiveDependencyDetected) and the [Captive Dependency](ErrorDetectionAndResolution.md#using-validate-to-check-for-captive-dependency) problems are catched by the container.

The example:
```cs
Expand Down

0 comments on commit 94f7d9f

Please sign in to comment.