Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
carl-andersson-at-westermo authored Mar 7, 2024
1 parent b35493b commit d6dfd74
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ For an example regarding which projects are best server by which package, see th

```mermaid
graph TD;
App[Main()]-->Dependency A[ClassLib];
App[Main()]-->Dependency B[ClassLib];
Dependency B[ClassLib]-->Dependency C[ClassLib];
Dependency A[ClassLib]-->Dependency C[ClassLib];
App-->Dependency A;
App-->Dependency B;
Dependency B-->Dependency C;
Dependency A-->Dependency C;
```

In the above graph, the reccomended action would be to add a reference to **FactoryGenerator.Attributes** to _Dependency C_ as that will in turn allow _Dependency A_ and _Dependency B_ to reference
Expand All @@ -56,4 +56,4 @@ the attributes therein. Additionally, a reference to **FactoryGenerator** is bes
Overriding Injections, i.e if in the graph above _Dependency C_ injected an ```ISomething``` instance and that specific implementation of ```ISomething``` will not work for anything that uses _Dependency B_, then _Dependency B_ can substitute that injection by providing it's own injection of ```ISomething```. This overriding generally follows the project dependency tree, so if _Project A_ depends on _Project B_ which depends on _Project C_, A can override both B and C, but B cannot override A.

**Note**
Overriding Injections will not work if you resolve an ```IEnumerable<ISomething>```, as that will net your a collection of all ```ISomething``` that have been injected.
Overriding Injections will not work if you resolve an ```IEnumerable<ISomething>```, as that will net your a collection of all ```ISomething``` that have been injected.

0 comments on commit d6dfd74

Please sign in to comment.