protected override void ConfigureTransportAndPersistence(IBusConfigurator cfg) { var kafkaConfig = _kafkaFixture.BuildKafkaConfiguration(_topicName); cfg.UseKafkaTransport(kafkaConfig) .UsePostgreSqlPersistence(_sqlConfig); }
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); }
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); }