Ejemplo n.º 1
0
 public EventStoreSession
 (
     IHoldAllConfiguration configuration,
     IReadEventsFromStream eventReader,
     IStoreEventsToStream eventWriter,
     string streamName,
     IDateTimeProvider dateTimeProvider = null
 ) : this(defaultValidator, configuration, eventReader, eventWriter, streamName, dateTimeProvider)
 {
 }
Ejemplo n.º 2
0
        public EventStoreSession
        (
            IValidateState <TState> stateValidator,
            IHoldAllConfiguration configuration,
            IReadEventsFromStream eventReader,
            IStoreEventsToStream eventWriter,
            string streamName,
            IDateTimeProvider dateTimeProvider = null
        ) : base(stateValidator, configuration)
        {
            this.eventReader = eventReader ?? throw new ArgumentNullException(nameof(eventReader));
            this.eventWriter = eventWriter ?? throw new ArgumentNullException(nameof(eventWriter));

            this.streamName       = streamName ?? throw new ArgumentNullException(nameof(streamName));
            this.dateTimeProvider = dateTimeProvider ?? new SystemDateTimeProvider();
        }
Ejemplo n.º 3
0
 public EventStoreReadOnlyRepository(IHoldAllConfiguration configs, IReadEventsFromStream reader)
 {
     this.configs = configs ?? throw new ArgumentNullException(nameof(configs));
     this.reader  = reader;
 }