CAP is a library to achieve eventually consistent in distributed architectures system like SOA,MicroService. It is lightweight,easy to use and efficiently.
CAP is a library to achieve eventually consistent in distributed architectures system like SOA,MicroService. It is lightweight,easy to use and efficiently.
## OverView
## OverView
...
@@ -68,7 +68,7 @@ public void Configure(IApplicationBuilder app)
...
@@ -68,7 +68,7 @@ public void Configure(IApplicationBuilder app)
```
```
### Publishing
### Publish
Inject `ICapProducerService` in your Controller, then use the `ICapProducerService` to send message
Inject `ICapProducerService` in your Controller, then use the `ICapProducerService` to send message
...
@@ -95,7 +95,7 @@ public class PublishController : Controller
...
@@ -95,7 +95,7 @@ public class PublishController : Controller
```
```
### Subscribing
### Subscribe
**Action Method**
**Action Method**
...
@@ -128,7 +128,7 @@ public class PublishController : Controller
...
@@ -128,7 +128,7 @@ public class PublishController : Controller
**Service Method**
**Service Method**
If your subscribing method is not in the Controller,then your subscribe class need to Inheritance `IConsumerService`:
If your subscribe method is not in the Controller,then your subscribe class need to Inheritance `IConsumerService`: