Skip to content
This repository has been archived by the owner on Aug 1, 2022. It is now read-only.

docs(di): Add Dependency feature #75

Merged
merged 8 commits into from
Jun 21, 2022
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ Scan the interfaces and classes that inherit ISingletonDependency, IScopedDepend
## Features:

* IgnoreInjection: Ignore injection, used to exclude not being injected automatically
* Dependency:
* TryRegister: Set true to be registered only when the service is not registered, similar to TryAdd of IServiceCollection... extension method
* ReplaceServices: Set true to replace previously registered services, similar to the Replace... extension method of IServiceCollection.

## Methods:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ public interface IRepository<TEntity> : IScopedDependency
## 特性:

* IgnoreInjection: 忽略注入,用于排除不被自动注入
* Dependency:
* TryRegister: 设置true则仅当服务未注册时才会被注册,类似IServiceCollectionTryAdd ... 扩展方法
* ReplaceServices: 设置true则替换之前已经注册过的服务,类似IServiceCollectionReplace ... 扩展方法.

## 方法:

Expand Down