Exemplo n.º 1
0
        protected override void ConfigureTransportAndPersistence(IBusConfigurator cfg)
        {
            var sqlCfg = new SqlConfiguration(_fixture.ConnectionString);

            cfg.UseInMemoryTransport()
            .UseSqlPersistence(sqlCfg);
        }
        protected override void ConfigureTransportAndPersistence(IBusConfigurator cfg)
        {
            var mongoCfg = new MongoConfiguration(_fixture.ConnectionString,
                                                  _fixture.DbName,
                                                  MongoSagaStateRepositoryOptions.Default,
                                                  MongoOutboxRepositoryOptions.Default);

            cfg.UseInMemoryTransport()
            .UseMongoPersistence(mongoCfg);
        }
        protected override void ConfigureTransportAndPersistence(IBusConfigurator cfg)
        {
            var cosmosCfg = new CosmosConfiguration(_fixture.ConnectionString,
                                                    _fixture.DbName,
                                                    CosmosSagaStateRepositoryOptions.Default,
                                                    CosmosOutboxRepositoryOptions.Default);

            cfg.UseInMemoryTransport()
            .UseCosmosPersistence(cosmosCfg);
        }
Exemplo n.º 4
0
 protected override void ConfigureTransportAndPersistence(IBusConfigurator cfg) =>
 cfg.UseInMemoryTransport()
 .UseInMemoryPersistence();