public TaskStateManager(ITaskKeeper taskKeeper, ITaskChecker taskChecker) { if (taskKeeper == null) { throw new ArgumentNullException("taskKeeper"); } UpdateInterval = TimeSpan.FromSeconds(10); _taskKeeper = taskKeeper; _taskChecker = taskChecker; _timer.Interval = 10000; _timer.Elapsed += (sender, args) => Update(); _state = TaskProviderState.Stopped; }
private void ChangeState(TaskProviderState state) { _state = state; }