public RingEventSnapshootHandler( IAssemblyProvider assemblyProvider , ISnapshootStoreFactory snapshootStoreFactory , IEventRebuildHandler eventRebuildHandler , ISubscribeEventStore subscribeEventStore , ISnapshootCache snapshootCache , ILoggerFactory loggerFactory , IEventHandleSubject eventHandleSubject , int maxHandleCount) : base(maxHandleCount) { this._assemblyProvider = assemblyProvider; _snapshootStoreFactory = snapshootStoreFactory; _eventRebuildHandler = eventRebuildHandler; _subscribeEventStore = subscribeEventStore; _snapshootCache = snapshootCache; _logger = loggerFactory.CreateLogger <RingEventSnapshootHandler>(); _eventHandleSubject = eventHandleSubject; this.Initialize(assemblyProvider.Assemblys); var subscribeEvent = _subscribeEventStore.Get(_defaultSubscribeId); if (subscribeEvent != null) { _subscribeEvent = subscribeEvent; } }
public AggregateRootRebuilder(IEventStore eventStore, ISnapshootStoreFactory snapshootStoreFactory) { this._eventStore = eventStore; this._snapshootStoreFactory = snapshootStoreFactory; }