Skip to content

Commit

Permalink
fix: expose GetAggregateRoot() (#46)
Browse files Browse the repository at this point in the history
* fix: expose GetAggregateRoot()

* chore: format
  • Loading branch information
mvarendorff2 authored Sep 30, 2024
1 parent 169bb9d commit 3a5a95e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Fluss/UnitOfWork/IWriteUnitOfWork.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@ public interface IWriteUnitOfWork : IUnitOfWork
ValueTask<TAggregate> GetAggregate<TAggregate, TKey>(TKey key)
where TAggregate : AggregateRoot<TKey>, new();

ValueTask<TAggregate> GetAggregate<TAggregate>()
where TAggregate : AggregateRoot, new();

ValueTask Publish(Event @event, AggregateRoot? aggregate = null);
}

0 comments on commit 3a5a95e

Please sign in to comment.