/// <summary> /// Configures Rebus to store timeouts in AdoNet. /// </summary> public static AdoNetTimeoutStorageFluentConfigurer StoreInAdoNet(this RebusTimeoutsConfigurer configurer, string connectionStringName, string timeoutsTableName) { var connString = GetConnectionString(connectionStringName); var factory = new AdoNetConnectionFactory(connString.ConnectionString, connString.ProviderName); var storage = new AdoNetTimeoutStorage(factory, timeoutsTableName); configurer.Use(storage); return storage; }
/// <summary> /// Configures Rebus to store timeouts in AdoNet. /// </summary> public static AdoNetTimeoutStorageFluentConfigurer StoreInAdoNet(this RebusTimeoutsConfigurer configurer, string connectionStringName, string timeoutsTableName) { var connString = GetConnectionString(connectionStringName); var factory = new AdoNetConnectionFactory(connString.ConnectionString, connString.ProviderName); var storage = new AdoNetTimeoutStorage(factory, timeoutsTableName); configurer.Use(storage); return(storage); }
public new void SetUp() { DropTable(TIMEOUTS_TABLE); _storage = new AdoNetTimeoutStorage(_factory, TIMEOUTS_TABLE); }