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
dc36c7e4
Commit
dc36c7e4
authored
Aug 15, 2017
by
Savorboard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor
parent
3e3d2723
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
CapPublisher.cs
src/DotNetCore.CAP.SqlServer/CapPublisher.cs
+3
-2
No files found.
src/DotNetCore.CAP.SqlServer/CapPublisher.cs
View file @
dc36c7e4
...
...
@@ -58,14 +58,15 @@ namespace DotNetCore.CAP.SqlServer
protected
override
async
Task
ExecuteAsync
(
IDbConnection
dbConnection
,
IDbTransaction
dbTransaction
,
CapPublishedMessage
message
)
{
await
dbConnection
.
ExecuteAsync
(
PrepareSql
(),
message
,
dbTransaction
);
_logger
.
LogInformation
(
"Published Message has been persisted in the database. name:"
+
message
.
ToString
());
}
public
Task
PublishAsync
(
string
name
,
object
contentObj
)
public
async
Task
PublishAsync
(
CapPublishedMessage
message
)
{
using
(
var
conn
=
new
SqlConnection
(
_options
.
ConnectionString
))
{
return
conn
.
ExecuteAsync
(
PrepareSql
(),
contentObj
);
await
conn
.
ExecuteAsync
(
PrepareSql
(),
message
);
}
}
...
...
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