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