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
fe2dc1ac
Commit
fe2dc1ac
authored
Aug 16, 2017
by
yangxiaodong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add ICallbackPublisher to DI
parent
7a7370b5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
CAP.MySqlCapOptionsExtension.cs
src/DotNetCore.CAP.MySql/CAP.MySqlCapOptionsExtension.cs
+1
-0
CAP.PostgreSqlCapOptionsExtension.cs
...tCore.CAP.PostgreSql/CAP.PostgreSqlCapOptionsExtension.cs
+1
-0
No files found.
src/DotNetCore.CAP.MySql/CAP.MySqlCapOptionsExtension.cs
View file @
fe2dc1ac
...
@@ -21,6 +21,7 @@ namespace DotNetCore.CAP
...
@@ -21,6 +21,7 @@ namespace DotNetCore.CAP
services
.
AddSingleton
<
IStorage
,
MySqlStorage
>();
services
.
AddSingleton
<
IStorage
,
MySqlStorage
>();
services
.
AddScoped
<
IStorageConnection
,
MySqlStorageConnection
>();
services
.
AddScoped
<
IStorageConnection
,
MySqlStorageConnection
>();
services
.
AddScoped
<
ICapPublisher
,
CapPublisher
>();
services
.
AddScoped
<
ICapPublisher
,
CapPublisher
>();
services
.
AddTransient
<
ICallbackPublisher
,
CapPublisher
>();
services
.
AddTransient
<
IAdditionalProcessor
,
DefaultAdditionalProcessor
>();
services
.
AddTransient
<
IAdditionalProcessor
,
DefaultAdditionalProcessor
>();
var
mysqlOptions
=
new
MySqlOptions
();
var
mysqlOptions
=
new
MySqlOptions
();
...
...
src/DotNetCore.CAP.PostgreSql/CAP.PostgreSqlCapOptionsExtension.cs
View file @
fe2dc1ac
...
@@ -21,6 +21,7 @@ namespace DotNetCore.CAP
...
@@ -21,6 +21,7 @@ namespace DotNetCore.CAP
services
.
AddSingleton
<
IStorage
,
PostgreSqlStorage
>();
services
.
AddSingleton
<
IStorage
,
PostgreSqlStorage
>();
services
.
AddScoped
<
IStorageConnection
,
PostgreSqlStorageConnection
>();
services
.
AddScoped
<
IStorageConnection
,
PostgreSqlStorageConnection
>();
services
.
AddScoped
<
ICapPublisher
,
CapPublisher
>();
services
.
AddScoped
<
ICapPublisher
,
CapPublisher
>();
services
.
AddTransient
<
ICallbackPublisher
,
CapPublisher
>();
services
.
AddTransient
<
IAdditionalProcessor
,
DefaultAdditionalProcessor
>();
services
.
AddTransient
<
IAdditionalProcessor
,
DefaultAdditionalProcessor
>();
var
postgreSqlOptions
=
new
PostgreSqlOptions
();
var
postgreSqlOptions
=
new
PostgreSqlOptions
();
...
...
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