Browse Source

Update Dependency-Injection.md document translation.

pull/542/head
JiYuhang 8 years ago
parent
commit
7f71e31be6
  1. 4
      docs/zh-Hans/Dependency-Injection.md

4
docs/zh-Hans/Dependency-Injection.md

@ -61,7 +61,7 @@ public class BlogModule : AbpModule
* 存储库(实现``IRepository``接口)注册为transient. * 存储库(实现``IRepository``接口)注册为transient.
* 域服务(实现``IDomainService``接口)注册为transient. * 域服务(实现``IDomainService``接口)注册为transient.
Example: 示例:
````C# ````C#
public class BlogPostAppService : ApplicationService public class BlogPostAppService : ApplicationService
@ -79,7 +79,7 @@ public class BlogPostAppService : ApplicationService
* ``ISingletonDependency`` 注册为singleton. * ``ISingletonDependency`` 注册为singleton.
* ``IScopedDependency`` 注册为scoped. * ``IScopedDependency`` 注册为scoped.
Example: 示例:
````C# ````C#
public class TaxCalculator : ITransientDependency public class TaxCalculator : ITransientDependency

Loading…
Cancel
Save