Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
CAP
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
CAP
Commits
45963f5e
Commit
45963f5e
authored
Jul 20, 2017
by
叶礼飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Service Method attribute and nuget package command in readme
parent
0381a79e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
README.md
README.md
+1
-1
README.zh-cn.md
README.zh-cn.md
+5
-5
No files found.
README.md
View file @
45963f5e
...
...
@@ -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
)
{
...
...
README.zh-cn.md
View file @
45963f5e
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment