Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #4 from liuzelei/master
Browse files Browse the repository at this point in the history
Anti-pattern section in readme.
  • Loading branch information
FatTigerWang committed Dec 3, 2019
2 parents a4a4572 + aba821b commit e67ba12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ ASP.NET Core 通过属性注入依赖
* 我们不做容器,我们只是`NET Core Container`的搬运工(在默认容器的基础上增加了一些功能).
* 不要在构造函数中使用`NAutowired`.
* 由于我们与那些`妖艳的`第三方`IoC Container`有些不同,我们没有替换`NetCore`默认的`Container`,这意味着您依然可以在`Startup`里使用`IServiceCollection`将服务加入到`Container`并使用`NAutowired`还原这些依赖.
* 虽然有人觉得Spring风格的DI有点[反模式](https://dzone.com/articles/spring-di-patterns-the-good-the-bad-and-the-ugly),但是写起来爽。

## 如何使用
* `nuget`包管理器中引入`NAutowired``NAutowired.Core`.
Expand Down
1 change: 1 addition & 0 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ ASP.NET CORE Field Injection
* We don't make containers, we are just porters of `NetCore Container` (add some features to the default container).
* Don't use `NAutowired` in the constructor.
* We have not replaced `NetCore` default `Container`, which means you can still add services to `Container` using `IServiceCollection` in `Startup`. And use `NAutowired` to resolve dependencies.
* Spring DI style is [ugly](https://dzone.com/articles/spring-di-patterns-the-good-the-bad-and-the-ugly), but who cares?

### How to use
* Introducing `NAutowired` and `NAutowired.Core` in the nuget.
Expand Down

0 comments on commit e67ba12

Please sign in to comment.