From 6d35ef96abfbd6a8b5597a034231f12789c9cbd6 Mon Sep 17 00:00:00 2001 From: Savorboard Date: Tue, 24 Jul 2018 10:13:02 +0800 Subject: [PATCH] add file license header. --- src/DotNetCore.CAP.MongoDB/MongoTransaction.cs | 5 ++++- src/DotNetCore.CAP/Abstractions/IMongoTransaction.cs | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/DotNetCore.CAP.MongoDB/MongoTransaction.cs b/src/DotNetCore.CAP.MongoDB/MongoTransaction.cs index 367cac5..96aed37 100644 --- a/src/DotNetCore.CAP.MongoDB/MongoTransaction.cs +++ b/src/DotNetCore.CAP.MongoDB/MongoTransaction.cs @@ -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; diff --git a/src/DotNetCore.CAP/Abstractions/IMongoTransaction.cs b/src/DotNetCore.CAP/Abstractions/IMongoTransaction.cs index e8c16d0..b98caf8 100644 --- a/src/DotNetCore.CAP/Abstractions/IMongoTransaction.cs +++ b/src/DotNetCore.CAP/Abstractions/IMongoTransaction.cs @@ -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 BegeinAsync(bool autoCommit = true); - + IMongoTransaction Begein(bool autoCommit = true); } } \ No newline at end of file