From 45963f5e286c3ed01bbaf5db7b7321d22faef1d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B6=E7=A4=BC=E9=A3=9E?= <463936274@qq.com> Date: Thu, 20 Jul 2017 16:38:48 +0800 Subject: [PATCH 1/2] Fix Service Method attribute and nuget package command in readme --- README.md | 2 +- README.zh-cn.md | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 000ba1c..d06d483 100644 --- a/README.md +++ b/README.md @@ -175,7 +175,7 @@ namespace xxx.Service public class SubscriberService: ISubscriberService, ICapSubscribe { - [KafkaTopic("xxx.services.account.check")] + [CapSubscribe("xxx.services.account.check")] public void CheckReceivedMessage(Person person) { diff --git a/README.zh-cn.md b/README.zh-cn.md index 4968a4f..aad1901 100644 --- a/README.zh-cn.md +++ b/README.zh-cn.md @@ -33,25 +33,25 @@ CAP 具有消息持久化的功能,当你的服务进行重启或者宕机时 你可以运行以下下命令在你的项目中安装 CAP。 ``` -PM> Install-Package DotNetCore.CAP -Pre +PM> Install-Package DotNetCore.CAP ``` 如果你的消息队列使用的是 Kafka 的话,你可以: ``` -PM> Install-Package DotNetCore.CAP.Kafka -Pre +PM> Install-Package DotNetCore.CAP.Kafka ``` 如果你的消息队列使用的是 RabbitMQ 的话,你可以: ``` -PM> Install-Package DotNetCore.CAP.RabbitMQ -Pre +PM> Install-Package DotNetCore.CAP.RabbitMQ ``` CAP 默认提供了 Sql Server 的扩展作为数据库存储(MySql的正在开发中): ``` -PM> Install-Package DotNetCore.CAP.SqlServer -Pre +PM> Install-Package DotNetCore.CAP.SqlServer ``` ### Configuration @@ -175,7 +175,7 @@ namespace xxx.Service public class SubscriberService: ISubscriberService, ICapSubscribe { - [KafkaTopic("xxx.services.account.check")] + [CapSubscribe("xxx.services.account.check")] public void CheckReceivedMessage(Person person) { From 5d22762e49d8fe8328a4dedf072b7db779a4d9a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B6=E7=A4=BC=E9=A3=9E?= <463936274@qq.com> Date: Thu, 20 Jul 2017 16:40:04 +0800 Subject: [PATCH 2/2] Fix Service Method attribute and nuget package command in readme --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d06d483..56ca005 100644 --- a/README.md +++ b/README.md @@ -33,25 +33,25 @@ This is a diagram of the CAP working in the ASP.NET Core MicroService architectu You can run the following command to install the CAP in your project. ``` -PM> Install-Package DotNetCore.CAP -Pre +PM> Install-Package DotNetCore.CAP ``` If your Message Queue is using Kafka, you can: ``` -PM> Install-Package DotNetCore.CAP.Kafka -Pre +PM> Install-Package DotNetCore.CAP.Kafka ``` If your Message Queue is using RabbitMQ, you can: ``` -PM> Install-Package DotNetCore.CAP.RabbitMQ -Pre +PM> Install-Package DotNetCore.CAP.RabbitMQ ``` CAP provides EntityFramework as default database store extension (The MySQL version is under development): ``` -PM> Install-Package DotNetCore.CAP.SqlServer -Pre +PM> Install-Package DotNetCore.CAP.SqlServer ``` ### Configuration