Skip to content

Instantly share code, notes, and snippets.

@jen20
jen20 / GetEventStoreRepository.cs
Last active Aug 13, 2018
Event Store implementation of the CommonDomain IRepository interface and integration tests
View GetEventStoreRepository.cs
public class GetEventStoreRepository : IRepository
{
private const string EventClrTypeHeader = "EventClrTypeName";
private const string AggregateClrTypeHeader = "AggregateClrTypeName";
private const string CommitIdHeader = "CommitId";
private const int WritePageSize = 500;
private const int ReadPageSize = 500;
private readonly Func<Type, Guid, string> _aggregateIdToStreamName;
You can’t perform that action at this time.