using Flensrocker.EventSourcing.Abstractions;
using Microsoft.EntityFrameworkCore;
///
/// An instance of this interface lives in the DI scope of the IDomainEventStore.
/// This can be the scope of an Orleans grain, which can last for several minutes.
/// Keep this in mind when implementing this.
///
///
public interface IDbStrongConsistentProjection
where TEventBase : class
where TDbContext : DbContext
{
Task ApplyEvents(IDomainEventStore eventStore, TDbContext dbContext, IReadOnlyList domainEvents);
}