/// <summary>
        /// Initializes an instance of <see cref="EventsConfiguration"/>
        /// </summary>
        public EventsConfiguration()
        {
            CommittedEventStreamSender   = new CommittedEventStreamSenderConfiguration();
            CommittedEventStreamReceiver = new CommittedEventStreamReceiverConfiguration();
            EventProcessorLog            = typeof(NullEventProcessorLog);

            EventStore           = new EventStoreConfiguration();
            EventSourceVersions  = new EventSourceVersionsConfiguration();
            EventSequenceNumbers = new EventSequenceNumbersConfiguration();
            EventProcessorStates = new EventProcessorStatesConfiguration();
        }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of <see cref="ISerializer"/>
 /// </summary>
 /// <param name="configuration">The <see cref="EventProcessorStatesConfiguration">configuration</see></param>
 /// <param name="serializer"><see cref="ISerializer"/></param>
 /// <param name="files"><see cref="IFiles"/> to work with files</param>
 /// <param name="systemClock"><see cref="ISystemClock"/> for getting time from the system</param>
 /// <param name="logger"><see cref="ILogger"/> for logging</param>
 public EventProcessorStates(
     EventProcessorStatesConfiguration configuration,
     ISerializer serializer,
     IFiles files,
     ISystemClock systemClock,
     ILogger logger)
 {
     _configuration = configuration;
     _serializer    = serializer;
     _files         = files;
     _systemClock   = systemClock;
     logger.Information($"Using path : {configuration.Path}");
 }