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
3f37a453
Commit
3f37a453
authored
Aug 21, 2018
by
Savorboard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add file copyright
parent
406d338a
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
52 additions
and
25 deletions
+52
-25
ICapTransaction.MongoDB.cs
src/DotNetCore.CAP.MongoDB/ICapTransaction.MongoDB.cs
+5
-2
IClientSessionHandle.CAP.cs
src/DotNetCore.CAP.MongoDB/IClientSessionHandle.CAP.cs
+8
-4
ICapTransaction.MySql.cs
src/DotNetCore.CAP.MySql/ICapTransaction.MySql.cs
+5
-2
IDbContextTransaction.CAP.cs
src/DotNetCore.CAP.MySql/IDbContextTransaction.CAP.cs
+6
-3
ICapTransaction.PostgreSql.cs
src/DotNetCore.CAP.PostgreSql/ICapTransaction.PostgreSql.cs
+8
-4
IDbContextTransaction.CAP.cs
src/DotNetCore.CAP.PostgreSql/IDbContextTransaction.CAP.cs
+6
-3
ICapTransaction.SqlServer.cs
src/DotNetCore.CAP.SqlServer/ICapTransaction.SqlServer.cs
+8
-4
IDbContextTransaction.CAP.cs
src/DotNetCore.CAP.SqlServer/IDbContextTransaction.CAP.cs
+6
-3
No files found.
src/DotNetCore.CAP.MongoDB/ICapTransaction.MongoDB.cs
View file @
3f37a453
using
System.Diagnostics
;
// 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.Diagnostics
;
using
MongoDB.Driver
;
// ReSharper disable once CheckNamespace
...
...
src/DotNetCore.CAP.MongoDB/IClientSessionHandle.CAP.cs
View file @
3f37a453
using
System.Threading
;
// 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
;
using
System.Threading.Tasks
;
using
DotNetCore.CAP
;
using
MongoDB.Bson
;
...
...
@@ -9,13 +12,13 @@ namespace MongoDB.Driver
{
internal
class
CapMongoDbClientSessionHandle
:
IClientSessionHandle
{
private
readonly
ICapTransaction
_transaction
;
private
readonly
IClientSessionHandle
_sessionHandle
;
private
readonly
ICapTransaction
_transaction
;
public
CapMongoDbClientSessionHandle
(
ICapTransaction
transaction
)
{
_transaction
=
transaction
;
_sessionHandle
=
(
IClientSessionHandle
)
_transaction
.
DbTransaction
;
_sessionHandle
=
(
IClientSessionHandle
)
_transaction
.
DbTransaction
;
}
public
void
Dispose
()
...
...
@@ -68,6 +71,7 @@ namespace MongoDB.Driver
public
ClientSessionOptions
Options
=>
_sessionHandle
.
Options
;
public
IServerSession
ServerSession
=>
_sessionHandle
.
ServerSession
;
public
ICoreSessionHandle
WrappedCoreSession
=>
_sessionHandle
.
WrappedCoreSession
;
public
IClientSessionHandle
Fork
()
{
return
_sessionHandle
.
Fork
();
...
...
src/DotNetCore.CAP.MySql/ICapTransaction.MySql.cs
View file @
3f37a453
using
System.Data
;
// 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.Data
;
using
System.Diagnostics
;
using
Microsoft.EntityFrameworkCore.Storage
;
using
Microsoft.EntityFrameworkCore.Infrastructure
;
using
Microsoft.EntityFrameworkCore.Storage
;
// ReSharper disable once CheckNamespace
namespace
DotNetCore.CAP
...
...
src/DotNetCore.CAP.MySql/IDbContextTransaction.CAP.cs
View file @
3f37a453
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
;
using
DotNetCore.CAP
;
// ReSharper disable once CheckNamespace
...
...
@@ -11,7 +14,7 @@ namespace Microsoft.EntityFrameworkCore.Storage
public
CapEFDbTransaction
(
ICapTransaction
transaction
)
{
_transaction
=
transaction
;
var
dbContextTransaction
=
(
IDbContextTransaction
)
_transaction
.
DbTransaction
;
var
dbContextTransaction
=
(
IDbContextTransaction
)
_transaction
.
DbTransaction
;
TransactionId
=
dbContextTransaction
.
TransactionId
;
}
...
...
src/DotNetCore.CAP.PostgreSql/ICapTransaction.PostgreSql.cs
View file @
3f37a453
using
System.Data
;
// 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.Data
;
using
System.Diagnostics
;
using
Microsoft.EntityFrameworkCore.Infrastructure
;
using
Microsoft.EntityFrameworkCore.Storage
;
...
...
@@ -8,7 +11,9 @@ namespace DotNetCore.CAP
{
public
class
PostgreSqlCapTransaction
:
CapTransactionBase
{
public
PostgreSqlCapTransaction
(
IDispatcher
dispatcher
)
:
base
(
dispatcher
)
{
}
public
PostgreSqlCapTransaction
(
IDispatcher
dispatcher
)
:
base
(
dispatcher
)
{
}
public
override
void
Commit
()
{
...
...
@@ -67,5 +72,4 @@ namespace DotNetCore.CAP
return
new
CapEFDbTransaction
(
capTrans
);
}
}
}
\ No newline at end of file
src/DotNetCore.CAP.PostgreSql/IDbContextTransaction.CAP.cs
View file @
3f37a453
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
;
using
DotNetCore.CAP
;
// ReSharper disable once CheckNamespace
...
...
@@ -11,7 +14,7 @@ namespace Microsoft.EntityFrameworkCore.Storage
public
CapEFDbTransaction
(
ICapTransaction
transaction
)
{
_transaction
=
transaction
;
var
dbContextTransaction
=
(
IDbContextTransaction
)
_transaction
.
DbTransaction
;
var
dbContextTransaction
=
(
IDbContextTransaction
)
_transaction
.
DbTransaction
;
TransactionId
=
dbContextTransaction
.
TransactionId
;
}
...
...
src/DotNetCore.CAP.SqlServer/ICapTransaction.SqlServer.cs
View file @
3f37a453
using
System.Data
;
// 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.Data
;
using
System.Diagnostics
;
using
Microsoft.EntityFrameworkCore.Infrastructure
;
using
Microsoft.EntityFrameworkCore.Storage
;
...
...
@@ -8,7 +11,9 @@ namespace DotNetCore.CAP
{
public
class
SqlServerCapTransaction
:
CapTransactionBase
{
public
SqlServerCapTransaction
(
IDispatcher
dispatcher
)
:
base
(
dispatcher
)
{
}
public
SqlServerCapTransaction
(
IDispatcher
dispatcher
)
:
base
(
dispatcher
)
{
}
public
override
void
Commit
()
{
...
...
@@ -67,5 +72,4 @@ namespace DotNetCore.CAP
return
new
CapEFDbTransaction
(
capTrans
);
}
}
}
\ No newline at end of file
src/DotNetCore.CAP.SqlServer/IDbContextTransaction.CAP.cs
View file @
3f37a453
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
;
using
DotNetCore.CAP
;
// ReSharper disable once CheckNamespace
...
...
@@ -11,7 +14,7 @@ namespace Microsoft.EntityFrameworkCore.Storage
public
CapEFDbTransaction
(
ICapTransaction
transaction
)
{
_transaction
=
transaction
;
var
dbContextTransaction
=
(
IDbContextTransaction
)
_transaction
.
DbTransaction
;
var
dbContextTransaction
=
(
IDbContextTransaction
)
_transaction
.
DbTransaction
;
TransactionId
=
dbContextTransaction
.
TransactionId
;
}
...
...
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