Skip to content

Commit

Permalink
docs:属性注入特性FromContainer 改为 FromServiceContext (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
tanyongzheng committed Oct 8, 2020
1 parent 7e7b1bb commit fd1a09c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/injector.md
Expand Up @@ -68,8 +68,8 @@ public interface ISampleRepository
public class SampleRepository : ISampleRepository
{
//属性注入。属性注入的条件为标记FromContainer特性,并且允许set。满足条件的属性自动注入
[FromContainer]
//属性注入。属性注入的条件为标记FromServiceContext特性,并且允许set。满足条件的属性自动注入
[FromServiceContext]
public ILogger Logger { get; set; }
}
```
Expand Down

0 comments on commit fd1a09c

Please sign in to comment.