public InMemorySession( IDictionary <Type, Func <IEnumerable <IEvent>, object> > builders, IEnumerable <Projector> projections, PendingEventsStore storeEvents) { _builders = builders; _projections = projections; _storeEvents = storeEvents; _pendingEvents = new PendingEventsStore(); }
public FileSystemSession( IFileSystem fileSystem, Dictionary <Type, Func <IEnumerable <IEvent>, object> > builders, IEnumerable <Projector> projections, string root) { _fileSystem = fileSystem; _builders = builders; _projections = projections; _root = root; _pending = new PendingEventsStore(); }
public InMemoryStorage(PendingEventsStore events = null) { _builders = new Dictionary <Type, Func <IEnumerable <IEvent>, object> >(); _events = events ?? new PendingEventsStore(); _projections = new Dictionary <Type, Projector>(); }