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. }
public EventStreamController( IStoreEvents eventStore, ICommitEnhancer enhancer, IHandleMapper handleMapper, IIdentityConverter identityConverter) { _enhancer = enhancer; _commits = (ICommitEvents)eventStore; _handleMapper = handleMapper; _identityConverter = identityConverter; }
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 CommitEnhancer(IIdentityConverter converter) { _converter = converter; }
public static void Initialize(IIdentityConverter converter) { MongoFlatIdSerializerHelper.IdentityConverter = converter; }
public RepositoryEx(IStoreEvents eventStore, IConstructAggregatesEx factory, IDetectConflicts conflictDetector, IIdentityConverter identityConverter) : base(eventStore, factory, conflictDetector, identityConverter) { }