public InMemEventStoreDomainRespository(string category, ITransientDomainEventPublisher publisher = null)
     : base(category)
 {
     this._publisher        = publisher;
     _serializationSettings = new JsonSerializerSettings
     {
         TypeNameHandling = TypeNameHandling.All
     };
 }
Пример #2
0
 public EventSourcingRepository(IEventStore eventStore, ITransientDomainEventPublisher publisher)
 {
     this.eventStore = eventStore;
     this.publisher  = publisher;
 }
 public EventStoreDomainRepository(string category, IEventStoreConnection connection, ICustomiseEventData customiseEventData, ITransientDomainEventPublisher publisher = null) : base(category)
 {
     this._connection         = connection;
     this._publisher          = publisher;
     this._customiseEventData = customiseEventData;
 }
Пример #4
0
 public EventSourcingRepository(IEventStore eventStore, ITransientDomainEventPublisher publisher)
 {
     _eventStore = eventStore ?? throw new ArgumentNullException(nameof(eventStore));
     _publisher  = publisher ?? throw new ArgumentNullException(nameof(publisher));
 }
 public EventStoreDomainRepository(string category, IEventStoreConnection connection, ITransientDomainEventPublisher publisher = null) : this(category, connection, new CustomiseEventData(), publisher)
 {
 }