public EventDataHandler(IEventDataCache <T, V> cache, IEventDataFactory <T, V> factory, long initialWaitTimeMillis , long maxWaitTimeMillis) { this.cache = cache; this.factory = factory; this.waitTime = new WaitTime(initialWaitTimeMillis, maxWaitTimeMillis); }
public EventsDispatcher(EventStoreConfiguration eventStoreConfiguration, IEventDataFactory eventDataFactory, IEventBus eventBus) { this._eventClrTypeHeader = eventStoreConfiguration.EventTypeHeader; this._aggregateClrTypeHeader = eventStoreConfiguration.AggregateTypeHeader; this._eventDataFactory = eventDataFactory; }
public BaseEventStore( EventDbContext <TEventData, TEventId, TAggregateId> dbContext, IServiceProvider serviceProvider, IEventDataFactory <TEventData, TEventId, TAggregateId> eventDataFactory) { DbContext = dbContext; _serviceProvider = serviceProvider; _eventDataFactory = eventDataFactory; }
public EventStoreRepository(EventStoreConfiguration eventStoreConfiguration, IEventDataFactory eventDataFactory) : this((t, g) => $"{char.ToLower(t.Name[0])}{t.Name.Substring(1)}Events-{g}") { this._eventClrTypeHeader = eventStoreConfiguration.EventTypeHeader; this._aggregateClrTypeHeader = eventStoreConfiguration.AggregateTypeHeader; this._eventDataFactory = eventDataFactory; }
public ProjectionEventStream(IEventStoreFacade connection, IEventConverter eventConveter, IEventDataFactory eventDataFactory, IProjectionSchema <TProjection> projectionSchema) { _connection = connection; _eventConveter = eventConveter; _eventDataFactory = eventDataFactory; _projectionSchema = projectionSchema; _projectionStreamName = $"{ServiceConventions.GetCategoryFromNamespace(typeof(TProjection).Namespace)}Projection"; }
public AggregateEventStream(IEventStoreFacade connection, IEventConverter eventConverter, IEventDataFactory eventDataFactory, IEventMetadataFactory <TAggregate> metadataFactory, IAggregateSchema <TAggregate> aggregateSchema, Serilog.ILogger logger) { _connection = connection; _eventConverter = eventConverter; _eventDataFactory = eventDataFactory; _metadataFactory = metadataFactory; _aggregateSchema = aggregateSchema; _logger = logger; }
public EventStore(EventDbContext <EventData, Guid, Guid> dbContext, IServiceProvider serviceProvider, IEventDataFactory <EventData, Guid, Guid> eventDataFactory) : base(dbContext, serviceProvider, eventDataFactory) { }