Ejemplo n.º 1
0
        /// <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));
        }
Ejemplo n.º 2
0
        protected override void DoSetUp()
        {
            // ensure the two tables are dropped
            DropTable(TimeoutsTableName);

            storage = new SqlServerTimeoutStorage(ConnectionStrings.SqlServer, TimeoutsTableName);
        }
Ejemplo n.º 3
0
        protected override void DoSetUp()
        {
            // ensure the two tables are dropped
            try { ExecuteCommand("drop table " + TimeoutsTableName); }
            catch { }

            storage = new SqlServerTimeoutStorage(ConnectionStrings.SqlServer, TimeoutsTableName);
        }
Ejemplo n.º 4
0
 internal SqlServerTimeoutStorageFluentConfigurer(SqlServerTimeoutStorage sqlServerTimeoutStorage)
 {
     this.sqlServerTimeoutStorage = sqlServerTimeoutStorage;
 }