Skip to content

Commit

Permalink
Add async methods to transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
felixsevero committed Sep 16, 2024
1 parent 70d63f6 commit da781db
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Azofe.Core.Tests/Azofe.Core.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="xunit" Version="2.8.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.0">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="xunit" Version="2.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
4 changes: 2 additions & 2 deletions Azofe.Core/Azofe.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
<Product>Azofe</Product>
<RepositoryUrl>https://github.com/felixsevero/Azofe.Core.git</RepositoryUrl>
<TargetFramework>net8.0</TargetFramework>
<Version>0.2.0</Version>
<Version>0.3.0</Version>
</PropertyGroup>
<ItemGroup>
<None Include="..\README.md" Pack="true" PackagePath="\" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="IdGen" Version="3.0.7" />
<PackageReference Include="MediatR" Version="12.4.0" />
<PackageReference Include="MediatR" Version="12.4.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.1" />
</ItemGroup>
</Project>
6 changes: 5 additions & 1 deletion Azofe.Core/ITransactionFactory.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
namespace Azofe.Core;

public interface ITransaction: IDisposable {
public interface ITransaction: IAsyncDisposable, IDisposable {

void Complete();

Task CompleteAsync();

}

public interface ITransactionFactory {

ITransaction CreateTransaction();

Task<ITransaction> CreateTransactionAsync();

}

0 comments on commit da781db

Please sign in to comment.