public FluentNHibernateJobQueueProvider(FluentNHibernateJobStorage storage)
 {
     if (storage == null)
     {
         throw new ArgumentNullException(nameof(storage));
     }
     _jobQueue      = new FluentNHibernateJobQueue(storage);
     _monitoringApi = new FluentNHibernateJobQueueMonitoringApi(storage);
 }
Example #2
0
 public FluentNHibernateFetchedJob(
     FluentNHibernateJobStorage storage,
     FetchedJob fetchedJob)
 {
     _storage = storage ?? throw new ArgumentNullException(nameof(storage));
     _id      = fetchedJob?.Id ?? throw new ArgumentNullException(nameof(fetchedJob));
     JobId    = fetchedJob.JobId.ToString(CultureInfo.InvariantCulture);
     Queue    = fetchedJob.Queue;
 }
Example #3
0
        public FluentNHibernateJobQueueProvider(FluentNHibernateJobStorage storage,
                                                FluentNHibernateStorageOptions options)
        {
            if (storage == null)
            {
                throw new ArgumentNullException("storage");
            }
            if (options == null)
            {
                throw new ArgumentNullException("options");
            }

            _jobQueue      = new FluentNHibernateJobQueue(storage, options);
            _monitoringApi = new FluentNHibernateJobQueueMonitoringApi(storage);
        }
 public FluentNHibernateMonitoringApi([NotNull] FluentNHibernateJobStorage storage, int?jobListLimit)
 {
     _storage      = storage ?? throw new ArgumentNullException("storage");
     _jobListLimit = jobListLimit;
 }
Example #5
0
 public FluentNHibernateJobQueue(FluentNHibernateJobStorage storage, FluentNHibernateStorageOptions options)
 {
     Logger.Info("Job queue initialized");
     _storage = storage ?? throw new ArgumentNullException("storage");
     _options = options ?? throw new ArgumentNullException("options");
 }
 public FluentNHibernateJobQueueMonitoringApi(FluentNHibernateJobStorage storage)
 {
     _storage = storage ?? throw new ArgumentNullException(nameof(storage));
 }
 private static FluentNHibernateJobQueue CreateJobQueue(FluentNHibernateJobStorage storage)
 {
     return(new FluentNHibernateJobQueue(storage));
 }
 public FluentNHibernateJobQueue(FluentNHibernateJobStorage storage)
 {
     Logger.Debug("Job queue initialized");
     _storage = storage ?? throw new ArgumentNullException(nameof(storage));
 }
 public HQLForm(FluentNHibernateJobStorage Storage)
 {
     InitializeComponent();
     this.Storage = Storage;
 }