diff --git a/README.md b/README.md index 8bfb3fb..cd25182 100644 --- a/README.md +++ b/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(); - services.AddCap(x=>{}); + services.AddCap(x=>{}); } ``` diff --git a/README.zh-cn.md b/README.zh-cn.md index 799d771..8ceb14b 100644 --- a/README.zh-cn.md +++ b/README.zh-cn.md @@ -187,10 +187,10 @@ namespace xxx.Service ```c# public void ConfigureServices(IServiceCollection services) { - //注意: 注入的服务需要在 `services.AddCap(x=>{});` 之前 + //注意: 注入的服务需要在 `services.AddCap()` 之前 services.AddTransient(); - services.AddCap(x=>{}); + services.AddCap(x=>{}); } ```