瀏覽代碼

add notes to readme.

master
Savorboard 6 年之前
父節點
當前提交
63f137c6cb
共有 2 個檔案被更改,包括 4 行新增4 行删除
  1. +2
    -2
      README.md
  2. +2
    -2
      README.zh-cn.md

+ 2
- 2
README.md 查看文件

@@ -187,10 +187,10 @@ Then inject your `ISubscriberService` class in Startup.cs
```c#
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.AddCap(x=>{});
services.AddCap(x=>{});
}
```



+ 2
- 2
README.zh-cn.md 查看文件

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



Loading…
取消
儲存