Ejemplo n.º 1
0
        public BoundedContextListener(
            BoundedContextListenerConfiguration configuration,
            IEventConverter eventConverter,
            IUncommittedEventStreamCoordinator uncommittedEventStreamCoordinator,
            ILogger logger,
            IApplicationArtifactIdentifierStringConverter applicationArtifactIdentifierStringConverter,
            IImplementationsOf <IEvent> eventTypes,
            IEventStore eventStore,
            IEventEnvelopes eventEnvelopes,
            IEventSequenceNumbers eventSequenceNumbers,
            IEventSourceVersions eventSourceVersions,
            ICommittedEventStreamBridge committedEventStreamBridge,
            IConsumer consumer)
        {
            _eventConverter = eventConverter;
            _uncommittedEventStreamCoordinator = uncommittedEventStreamCoordinator;
            _logger = logger;
            _applicationArtifactIdentifierStringConverter = applicationArtifactIdentifierStringConverter;
            _eventTypes                 = eventTypes;
            _eventSequenceNumbers       = eventSequenceNumbers;
            _eventStore                 = eventStore;
            _eventEnvelopes             = eventEnvelopes;
            _eventSourceVersions        = eventSourceVersions;
            _committedEventStreamBridge = committedEventStreamBridge;
            _consumer = consumer;

            _serializer    = new JsonSerializer();
            _configuration = configuration;
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance
 /// </summary>
 /// <param name="applicationArtifactIdentifierStringConverter"><see cref="IApplicationArtifactIdentifierStringConverter"/> for converting to and from <see cref="IApplicationArtifactIdentifier"/></param>
 public ConvertersProvider(IApplicationArtifactIdentifierStringConverter applicationArtifactIdentifierStringConverter)
 {
     _applicationArtifactIdentifierStringConverter = applicationArtifactIdentifierStringConverter;
 }