Wrap DbTransaction too

This commit is contained in:
Ske
2020-06-13 18:49:05 +02:00
parent e176ccbab5
commit 37b99f9521
6 changed files with 89 additions and 36 deletions

View File

@@ -0,0 +1,13 @@
using System;
using System.Data;
using System.Threading;
using System.Threading.Tasks;
namespace PluralKit.Core
{
public interface IPKTransaction: IDbTransaction, IAsyncDisposable
{
public Task CommitAsync(CancellationToken ct = default);
public Task RollbackAsync(CancellationToken ct = default);
}
}