コード例 #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;
		}
コード例 #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);
        }
コード例 #3
0
        public new void SetUp()
        {
            DropTable(TIMEOUTS_TABLE);

            _storage = new AdoNetTimeoutStorage(_factory, TIMEOUTS_TABLE);
        }
コード例 #4
0
		public new void SetUp()
		{
			DropTable(TIMEOUTS_TABLE);

			_storage = new AdoNetTimeoutStorage(_factory, TIMEOUTS_TABLE);
		}