C# Класс BlueCollar.Scheduler

Provides scheduling services for scheduled jobs.
Наследование: IScheduler
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
CanScheduleBeEnqueued bool
EnqueueScheduledJobs void
RefreshSchedules void

Открытые методы

Метод Описание
RefreshSchedules ( ) : void

Refreshes this instance's schedules with the latest data from the repository.

Scheduler ( long workerId, string applicationName, QueueNameFilters queueFilters, int heartbeat, IRepositoryFactory repositoryFactory, ILogger logger ) : System

Initializes a new instance of the Scheduler class.

Приватные методы

Метод Описание
CanScheduleBeEnqueued ( ScheduleRecord schedule, System.DateTime windowBegin, System.DateTime windowEnd, System.DateTime &scheduleDate ) : bool
EnqueueScheduledJobs ( ) : void
RefreshSchedules ( IRepository repository, IDbTransaction transaction ) : void

Refreshes this instance's schedules with the latest data from the repository.

Описание методов

RefreshSchedules() публичный Метод

Refreshes this instance's schedules with the latest data from the repository.
public RefreshSchedules ( ) : void
Результат void

Scheduler() публичный Метод

Initializes a new instance of the Scheduler class.
public Scheduler ( long workerId, string applicationName, QueueNameFilters queueFilters, int heartbeat, IRepositoryFactory repositoryFactory, ILogger logger ) : System
workerId long The ID of the worker the scheduler is scheduling for.
applicationName string The name of the application to schedule jobs for.
queueFilters QueueNameFilters The queues to process schedules for.
heartbeat int The heartbeat, in seconds, the system is polled for updates. Used to calculate scheduling windows.
repositoryFactory IRepositoryFactory The repository factory to use when accessing data.
logger ILogger The logger to use when logging messages.
Результат System