瀏覽代碼

Add notes to readme.

master
Savorboard 6 年之前
父節點
當前提交
8bdb1f0ca6
共有 2 個文件被更改,包括 6 次插入0 次删除
  1. +3
    -0
      README.md
  2. +3
    -0
      README.zh-cn.md

+ 3
- 0
README.md 查看文件

@@ -187,7 +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=>{});`
services.AddTransient<ISubscriberService,SubscriberService>();
services.AddCap(x=>{});
}
```



+ 3
- 0
README.zh-cn.md 查看文件

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



Loading…
取消
儲存