protected override void ConfigureTransportAndPersistence(IBusConfigurator cfg)
        {
            var kafkaConfig = _kafkaFixture.BuildKafkaConfiguration(_topicName);

            cfg.UseKafkaTransport(kafkaConfig)
            .UsePostgreSqlPersistence(_sqlConfig);
        }
Exemple #2
0
        protected override void ConfigureTransportAndPersistence(IBusConfigurator cfg)
        {
            var(_, connStr) = _dbFixture.CreateDbContext();
            var sqlCfg = new SqlConfiguration(connStr);

            var kafkaConfig = _kafkaFixture.BuildKafkaConfiguration(_topicPrefix);

            cfg.UseKafkaTransport(kafkaConfig)
            .UseSqlPersistence(sqlCfg);
        }
Exemple #3
0
        protected override void ConfigureTransportAndPersistence(IBusConfigurator cfg)
        {
            var(_, name) = _mongoFixture.CreateDbContext();
            var mongoCfg = new MongoConfiguration(_mongoFixture.ConnectionString,
                                                  name,
                                                  MongoSagaStateRepositoryOptions.Default,
                                                  MongoOutboxRepositoryOptions.Default);

            var kafkaConfig = _kafkaFixture.BuildKafkaConfiguration(_topicName);

            cfg.UseKafkaTransport(kafkaConfig)
            .UseMongoPersistence(mongoCfg);
        }