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
e50ec84d
Commit
e50ec84d
authored
Oct 27, 2017
by
Savorboard
Committed by
GitHub
Oct 27, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md
parent
133ef01b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
README.md
README.md
+14
-12
No files found.
README.md
View file @
e50ec84d
...
...
@@ -30,22 +30,24 @@ You can run the following command to install the CAP in your project.
PM> Install-Package DotNetCore.CAP
```
If you
r Message Queue is using Kafka, you can:
If you
want use Kafka to send integrating event, installing by:
```
PM> Install-Package DotNetCore.CAP.Kafka
```
If you
r Message Queue is using RabbitMQ, you can:
If you
want use RabbitMQ to send integrating event, installing by:
```
PM> Install-Package DotNetCore.CAP.RabbitMQ
```
CAP support
ed SqlServer, MySql, PostgreSql as message store extension:
CAP support
s SqlServer, MySql, PostgreSql as event log storage.
```
//Select a database provider you are using
// select a database provider you are using, event log table will integrate into.
PM> Install-Package DotNetCore.CAP.SqlServer
PM> Install-Package DotNetCore.CAP.MySql
PM> Install-Package DotNetCore.CAP.PostgreSql
...
...
@@ -64,19 +66,19 @@ public void ConfigureServices(IServiceCollection services)
services
.
AddCap
(
x
=>
{
// If you
r SqlServer is using EF for data operations
, you need to add the following configuration:
// Notice: You don't need to config x.UseSqlServer(""") again!
// If you
are using EF
, you need to add the following configuration:
// Notice: You don't need to config x.UseSqlServer(""") again!
CAP can autodiscovery.
x
.
UseEntityFramework
<
AppDbContext
>();
// If you are using
Dapper,you need to add the config
:
// If you are using
ado.net,you need to add the configuration
:
x
.
UseSqlServer
(
"Your ConnectionStrings"
);
//
x.UseMySql("Your ConnectionStrings");
//
x.UsePostgreSql("Your ConnectionStrings");
// If you
r Message Queue is using RabbitMQ you need to add the config
:
x
.
UseMySql
(
"Your ConnectionStrings"
);
x
.
UsePostgreSql
(
"Your ConnectionStrings"
);
// If you
are using RabbitMQ, you need to add the configuration
:
x
.
UseRabbitMQ
(
"localhost"
);
// If you
r Message Queue is using Kafka you need to add the config
:
// If you
are using Kafka, you need to add the configuration
:
x
.
UseKafka
(
"localhost"
);
});
}
...
...
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