public PostgreSqlEventStore(IStringObjectSerializer objectSerializer, PostgreSqlOptions options) { this.objectSerializer = objectSerializer; connectionString = options.ConnectionString; schema = options.Schema; tableName = options.EventTableName; tableCount = options.EventTableCount; }
public ApplicationMessageProcessor( IStringObjectSerializer objectSerializer, IProcessingApplicationMessageQueueFactory queueFactory, IBackgroundWorker backgroundWorker, ILogger <ApplicationMessageProcessor> logger, VoguediOptions options) { this.objectSerializer = objectSerializer; this.queueFactory = queueFactory; this.backgroundWorker = backgroundWorker; this.logger = logger; expiration = options.MemoryQueueExpiration; backgroundWorkerKey = $"{nameof(ApplicationMessageProcessor)}_{SnowflakeId.Default().NewId()}"; queueMapping = new ConcurrentDictionary <string, IProcessingApplicationMessageQueue>(); }
public ProcessingCommandHandler( IProcessingCommandHandlerContextFactory contextFactory, IEventCommitter eventCommitter, IEventStore eventStore, IEventPublisher eventPublisher, IApplicationMessagePublisher applicationMessagePublisher, IStringObjectSerializer objectSerializer, IServiceProvider serviceProvider, ILogger <ProcessingCommandHandler> logger) { this.contextFactory = contextFactory; this.eventCommitter = eventCommitter; this.eventStore = eventStore; this.eventPublisher = eventPublisher; this.applicationMessagePublisher = applicationMessagePublisher; this.objectSerializer = objectSerializer; this.serviceProvider = serviceProvider; this.logger = logger; handlerMapping = new ConcurrentDictionary <Type, ICommandHandler>(); asyncHandlerMapping = new ConcurrentDictionary <Type, ICommandAsyncHandler>(); }
public MessagePublisher(IMessageQueueProducer queueProducer, IMessageSubscriptionManager subscriptionManager, IStringObjectSerializer objectSerializer) { this.queueProducer = queueProducer; this.subscriptionManager = subscriptionManager; this.objectSerializer = objectSerializer; }