protected AbstractRepository(IStoreEvents eventStore, IConstructAggregatesEx factory, IDetectConflicts conflictDetector, IIdentityConverter identityConverter) { this._eventStore = eventStore; this._factory = factory; this._conflictDetector = conflictDetector; this._identityConverter = identityConverter; this._identity = Interlocked.Increment(ref _actualIdentity); }
public RepositoryEx( IStoreEvents eventStore, IConstructAggregatesEx factory, IDetectConflicts conflictDetector, IIdentityConverter identityConverter, NEventStore.Logging.ILog logger) : base(eventStore, factory, conflictDetector, identityConverter, logger) { SnapshotManager = NullSnapshotManager.Instance; //Default behavior is avoid snapshot entirely. }
protected AbstractRepository( IStoreEvents eventStore, IConstructAggregatesEx factory, IDetectConflicts conflictDetector, IIdentityConverter identityConverter, NEventStore.Logging.ILog logger) { this._eventStore = eventStore; this._factory = factory; this._conflictDetector = conflictDetector; this._identityConverter = identityConverter; this._identity = Interlocked.Increment(ref _lastAssignedIdentity); _logger = logger; }
public RepositoryEx(IStoreEvents eventStore, IConstructAggregatesEx factory, IDetectConflicts conflictDetector, IIdentityConverter identityConverter) : base(eventStore, factory, conflictDetector, identityConverter) { }