コード例 #1
0
 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);
 }
コード例 #2
0
        public EventsDispatcher(EventStoreConfiguration eventStoreConfiguration, IEventDataFactory eventDataFactory, IEventBus eventBus)
        {
            this._eventClrTypeHeader     = eventStoreConfiguration.EventTypeHeader;
            this._aggregateClrTypeHeader = eventStoreConfiguration.AggregateTypeHeader;

            this._eventDataFactory = eventDataFactory;
        }
コード例 #3
0
 public BaseEventStore(
     EventDbContext <TEventData, TEventId, TAggregateId> dbContext,
     IServiceProvider serviceProvider, IEventDataFactory <TEventData, TEventId, TAggregateId> eventDataFactory)
 {
     DbContext         = dbContext;
     _serviceProvider  = serviceProvider;
     _eventDataFactory = eventDataFactory;
 }
コード例 #4
0
        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;
        }
コード例 #5
0
 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";
 }
コード例 #6
0
 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;
 }
コード例 #7
0
 public EventStore(EventDbContext <EventData, Guid, Guid> dbContext,
                   IServiceProvider serviceProvider,
                   IEventDataFactory <EventData, Guid, Guid> eventDataFactory)
     : base(dbContext, serviceProvider, eventDataFactory)
 {
 }