Exemple #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="database"></param>
 /// <param name="queueProviders"></param>
 public LiteDbMonitoringApi(HangfireDbContext database, PersistentJobQueueProviderCollection queueProviders)
 {
     _database       = database;
     _queueProviders = queueProviders;
 }
Exemple #2
0
 /// <summary>
 /// </summary>
 /// <param name="connection"></param>
 /// <param name="queueProviders"></param>
 /// <exception cref="ArgumentNullException"></exception>
 public LiteDbWriteOnlyTransaction(HangfireDbContext connection,
                                   PersistentJobQueueProviderCollection queueProviders)
 {
     _connection     = connection ?? throw new ArgumentNullException(nameof(connection));
     _queueProviders = queueProviders ?? throw new ArgumentNullException(nameof(queueProviders));
 }
        /// <summary>
        /// Ctor using default storage options
        /// </summary>
        public LiteDbConnection(HangfireDbContext database, PersistentJobQueueProviderCollection queueProviders)

            : this(database, new LiteDbStorageOptions(), queueProviders)
        {
        }