2
0

IScheduledTaskWorker.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. using MediaBrowser.Model.Tasks;
  2. using System;
  3. using System.Collections.Generic;
  4. namespace MediaBrowser.Common.ScheduledTasks
  5. {
  6. /// <summary>
  7. /// Interface IScheduledTaskWorker
  8. /// </summary>
  9. public interface IScheduledTaskWorker : IDisposable
  10. {
  11. /// <summary>
  12. /// Gets or sets the scheduled task.
  13. /// </summary>
  14. /// <value>The scheduled task.</value>
  15. IScheduledTask ScheduledTask { get; }
  16. /// <summary>
  17. /// Gets the last execution result.
  18. /// </summary>
  19. /// <value>The last execution result.</value>
  20. TaskResult LastExecutionResult { get; }
  21. /// <summary>
  22. /// Gets the name.
  23. /// </summary>
  24. /// <value>The name.</value>
  25. string Name { get; }
  26. /// <summary>
  27. /// Gets the description.
  28. /// </summary>
  29. /// <value>The description.</value>
  30. string Description { get; }
  31. /// <summary>
  32. /// Gets the category.
  33. /// </summary>
  34. /// <value>The category.</value>
  35. string Category { get; }
  36. /// <summary>
  37. /// Gets the state.
  38. /// </summary>
  39. /// <value>The state.</value>
  40. TaskState State { get; }
  41. /// <summary>
  42. /// Gets the current progress.
  43. /// </summary>
  44. /// <value>The current progress.</value>
  45. double? CurrentProgress { get; }
  46. /// <summary>
  47. /// Gets the triggers that define when the task will run
  48. /// </summary>
  49. /// <value>The triggers.</value>
  50. /// <exception cref="System.ArgumentNullException">value</exception>
  51. IEnumerable<ITaskTrigger> Triggers { get; set; }
  52. /// <summary>
  53. /// Gets the unique id.
  54. /// </summary>
  55. /// <value>The unique id.</value>
  56. Guid Id { get; }
  57. }
  58. }