Commit 27b59b8c authored by Savorboard's avatar Savorboard Committed by GitHub

Update README.md

parent e50ec84d
......@@ -60,7 +60,7 @@ First,You need to config CAP in your Startup.cs:
```cs
public void ConfigureServices(IServiceCollection services)
{
......
//......
services.AddDbContext<AppDbContext>();
......@@ -85,7 +85,7 @@ public void ConfigureServices(IServiceCollection services)
public void Configure(IApplicationBuilder app)
{
.....
//.....
app.UseCap();
}
......@@ -148,7 +148,7 @@ public class PublishController : Controller
If your subscribe method is not in the Controller,then your subscribe class need to Inheritance `ICapSubscribe`:
```cs
```c#
namespace xxx.Service
{
......@@ -163,7 +163,6 @@ namespace xxx.Service
[CapSubscribe("xxx.services.account.check")]
public void CheckReceivedMessage(Person person)
{
}
}
}
......@@ -172,7 +171,7 @@ namespace xxx.Service
Then inject your `ISubscriberService` class in Startup.cs
```cs
```c#
public void ConfigureServices(IServiceCollection services)
{
services.AddTransient<ISubscriberService,SubscriberService>();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment