Browse Source

add notes to readme.

master
Savorboard 6 years ago
parent
commit
63f137c6cb
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      README.md
  2. +2
    -2
      README.zh-cn.md

+ 2
- 2
README.md View File

@@ -187,10 +187,10 @@ Then inject your `ISubscriberService` class in Startup.cs
```c# ```c#
public void ConfigureServices(IServiceCollection services) public void ConfigureServices(IServiceCollection services)
{ {
//Note: The injection of services needs before of `services.AddCap(x=>{});`
//Note: The injection of services needs before of `services.AddCap()`
services.AddTransient<ISubscriberService,SubscriberService>(); services.AddTransient<ISubscriberService,SubscriberService>();
services.AddCap(x=>{});
services.AddCap(x=>{});
} }
``` ```




+ 2
- 2
README.zh-cn.md View File

@@ -187,10 +187,10 @@ namespace xxx.Service
```c# ```c#
public void ConfigureServices(IServiceCollection services) public void ConfigureServices(IServiceCollection services)
{ {
//注意: 注入的服务需要在 `services.AddCap(x=>{});` 之前
//注意: 注入的服务需要在 `services.AddCap()` 之前
services.AddTransient<ISubscriberService,SubscriberService>(); services.AddTransient<ISubscriberService,SubscriberService>();
services.AddCap(x=>{});
services.AddCap(x=>{});
} }
``` ```




Loading…
Cancel
Save