Example #1
0
 /// <summary>
 /// </summary>
 /// <param name="connection"></param>
 /// <param name="queueProviders"></param>
 /// <exception cref="ArgumentNullException"></exception>
 public SQLiteWriteOnlyTransaction(HangfireDbContext connection,
                                   PersistentJobQueueProviderCollection queueProviders)
 {
     _dbContext      = connection ?? throw new ArgumentNullException(nameof(connection));
     _queueProviders = queueProviders ?? throw new ArgumentNullException(nameof(queueProviders));
 }
 /// <summary>
 /// Ctor using default storage options
 /// </summary>
 public HangfireSQLiteConnection(HangfireDbContext database, PersistentJobQueueProviderCollection queueProviders)
     : this(database, new SQLiteStorageOptions(), queueProviders)
 {
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="database"></param>
 /// <param name="queueProviders"></param>
 public SQLiteMonitoringApi(HangfireDbContext database, PersistentJobQueueProviderCollection queueProviders)
 {
     _dbContext      = database;
     _queueProviders = queueProviders;
 }