public ExpirationManager(FirebirdStorage storage, FirebirdStorageOptions options, TimeSpan checkInterval)
        {
            if (storage == null) throw new ArgumentNullException("storage");
            if (options == null) throw new ArgumentNullException("options");

            _options = options;
            _storage = storage;
            _checkInterval = checkInterval;
        }
        public static FirebirdStorage UseFirebirdStorage(
            this IBootstrapperConfiguration configuration,
            string nameOrConnectionString)
        {
            var storage = new FirebirdStorage(nameOrConnectionString);

            configuration.UseStorage(storage);

            return(storage);
        }
Esempio n. 3
0
        public ExpirationManager(FirebirdStorage storage, FirebirdStorageOptions options, TimeSpan checkInterval)
        {
            if (storage == null)
            {
                throw new ArgumentNullException("storage");
            }
            if (options == null)
            {
                throw new ArgumentNullException("options");
            }

            _options       = options;
            _storage       = storage;
            _checkInterval = checkInterval;
        }
        public static IGlobalConfiguration <FirebirdStorage> UseFirebirdStorage(
            [NotNull] this IGlobalConfiguration configuration,
            [NotNull] string nameOrConnectionString)
        {
            if (configuration == null)
            {
                throw new ArgumentNullException("configuration");
            }
            if (nameOrConnectionString == null)
            {
                throw new ArgumentNullException("nameOrConnectionString");
            }

            var storage = new FirebirdStorage(nameOrConnectionString);

            return(configuration.UseStorage(storage));
        }
 public MsmqSqlServerStorageExtensionsFacts()
 {
      _storage = new FirebirdStorage(
         @"User=SYSDBA;Password=masterkey;Database=S:\Source\Hangfire.Firebird\HANGFIRE_MSMQ_TESTS.FDB;Packet Size=8192;DataSource=localhost;Port=3050;Dialect=3;Charset=NONE;ServerType=1;ClientLibrary=S:\Source\Hangfire.Firebird\Firebird\fbembed.dll;",
         new FirebirdStorageOptions { PrepareSchemaIfNecessary = false });
 }
 public ExpirationManager(FirebirdStorage storage, FirebirdStorageOptions options)
     : this(storage, options, TimeSpan.FromHours(1))
 {
 }
Esempio n. 7
0
 public ExpirationManager(FirebirdStorage storage, FirebirdStorageOptions options)
     : this(storage, options, TimeSpan.FromHours(1))
 {
 }