Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
glucaci committed Oct 2, 2023
1 parent b6c3016 commit 9e572a2
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Session.Abstractions/ISessionProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace MongoDB.Extensions.Session;

public interface ISessionProvider<TContext>
public interface ISessionProvider
{
Task<ITransactionSession> BeginTransactionAsync(
CancellationToken cancellationToken);
Expand Down
4 changes: 0 additions & 4 deletions src/Session.Abstractions/Session.Abstractions.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,4 @@
<PackageId>MongoDB.Extensions.Session.Abstractions</PackageId>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\Context\Context.csproj" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion src/Session.Tests/MongoSessionProviderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ protected override void OnConfiguring(IMongoDatabaseBuilder mongoDatabaseBuilder
}
}

private interface ITestSessionProvider : ISessionProvider<ITestDbContext> { }
private interface ITestSessionProvider : ISessionProvider { }

private class TestSessionProvider : MongoSessionProvider<ITestDbContext>, ITestSessionProvider
{
Expand Down
2 changes: 1 addition & 1 deletion src/Session/Internal/MongoSessionProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace MongoDB.Extensions.Session;

public abstract class MongoSessionProvider<TContext> : ISessionProvider<TContext>
public abstract class MongoSessionProvider<TContext> : ISessionProvider
where TContext : IMongoDbContext
{
private readonly IMongoClient _mongoClient;
Expand Down
1 change: 1 addition & 0 deletions src/Session/Session.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Context\Context.csproj" />
<ProjectReference Include="..\Session.Abstractions\Session.Abstractions.csproj" />
</ItemGroup>

Expand Down

0 comments on commit 9e572a2

Please sign in to comment.