Pārlūkot izejas kodu

add file license header.

master
Savorboard pirms 6 gadiem
vecāks
revīzija
c7010473ee
2 mainītis faili ar 8 papildinājumiem un 2 dzēšanām
  1. +4
    -1
      src/DotNetCore.CAP.MongoDB/MongoTransaction.cs
  2. +4
    -1
      src/DotNetCore.CAP/Abstractions/IMongoTransaction.cs

+ 4
- 1
src/DotNetCore.CAP.MongoDB/MongoTransaction.cs Parādīt failu

@@ -1,4 +1,6 @@
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;


+ 4
- 1
src/DotNetCore.CAP/Abstractions/IMongoTransaction.cs Parādīt failu

@@ -1,3 +1,6 @@
// 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);
}
}

Notiek ielāde…
Atcelt
Saglabāt