Exemplo n.º 1
0
		/// <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;
		}
Exemplo n.º 2
0
        /// <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);
        }
Exemplo n.º 3
0
        public new void SetUp()
        {
            DropTable(TIMEOUTS_TABLE);

            _storage = new AdoNetTimeoutStorage(_factory, TIMEOUTS_TABLE);
        }
Exemplo n.º 4
0
		public new void SetUp()
		{
			DropTable(TIMEOUTS_TABLE);

			_storage = new AdoNetTimeoutStorage(_factory, TIMEOUTS_TABLE);
		}