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
6d35ef96
Commit
6d35ef96
authored
Jul 24, 2018
by
Savorboard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add file license header.
parent
aa6840f0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
MongoTransaction.cs
src/DotNetCore.CAP.MongoDB/MongoTransaction.cs
+4
-1
IMongoTransaction.cs
src/DotNetCore.CAP/Abstractions/IMongoTransaction.cs
+4
-1
No files found.
src/DotNetCore.CAP.MongoDB/MongoTransaction.cs
View file @
6d35ef96
using
System
;
// Copyright (c) .NET Core Community. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using
System.Threading.Tasks
;
using
DotNetCore.CAP.Abstractions
;
using
MongoDB.Driver
;
...
...
@@ -8,6 +10,7 @@ namespace DotNetCore.CAP.MongoDB
public
class
MongoTransaction
:
IMongoTransaction
{
private
readonly
IMongoClient
_client
;
public
MongoTransaction
(
IMongoClient
client
)
{
_client
=
client
;
...
...
src/DotNetCore.CAP/Abstractions/IMongoTransaction.cs
View file @
6d35ef96
// Copyright (c) .NET Core Community. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using
System
;
using
System.Threading.Tasks
;
...
...
@@ -12,7 +15,7 @@ namespace DotNetCore.CAP.Abstractions
bool
AutoCommit
{
get
;
set
;
}
Task
<
IMongoTransaction
>
BegeinAsync
(
bool
autoCommit
=
true
);
IMongoTransaction
Begein
(
bool
autoCommit
=
true
);
}
}
\ No newline at end of file
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