Пример #1
0
        private void configureRabbtMQServerTransport(RebusConfigurer configurer)
        {
            var sqlConnectionString = _configuration.GetConnectionString("RebusSql");

            var rabbitConnectionString = _configuration.GetConnectionString("RebusRabbit");

            configurer.Transport(t => t.UseRabbitMq(rabbitConnectionString, _thisBus.ToString()))
            .Sagas(x =>
            {
                x.StoreInSqlServer(
                    connectionString: sqlConnectionString,
                    dataTableName: "rbs.Rebus_Sagas",
                    indexTableName: "rbs.Rebus_SagasIndex");
            });
        }