protected override void DoSetUp() { // ensure the two tables are dropped DropTable(TimeoutsTableName); storage = new SqlServerTimeoutStorage(ConnectionStrings.SqlServer, TimeoutsTableName); }
protected override void DoSetUp() { // ensure the two tables are dropped try { ExecuteCommand("drop table " + TimeoutsTableName); } catch { } storage = new SqlServerTimeoutStorage(ConnectionStrings.SqlServer, TimeoutsTableName); }
/// <summary> /// Configures Rebus to store timeouts in SQL server /// </summary> public SqlServerTimeoutStorageFluentConfigurer StoreInSqlServer(string connectionString, string timeoutsTableName) { var timeoutStorage = new SqlServerTimeoutStorage(connectionString, timeoutsTableName); Use(timeoutStorage); return new SqlServerTimeoutStorageFluentConfigurer(timeoutStorage); }
internal SqlServerTimeoutStorageFluentConfigurer(SqlServerTimeoutStorage sqlServerTimeoutStorage) { this.sqlServerTimeoutStorage = sqlServerTimeoutStorage; }