root/TaskScheduler/TaskScheduler/Tasks/ITask.cs

57
1
#region Using Statements
1
#region Using Statements
2
2
3
using System;
3
4
4
5
#endregion
5
#endregion
6
6
7
namespace Tasks
7
namespace Tasks
8
{
8
{
9
    public interface ITask
9
    public interface ITask
10
    {
10
    {
11
        /// <summary>
12
        /// Gets or sets the name.
13
        /// </summary>
14
        /// <value>The name.</value>
15
        string Name { get; set; }
16
17
        /// <summary>
18
        /// Gets or sets a value indicating whether this <see cref="ITask"/> is active.
19
        /// </summary>
20
        /// <value><c>true</c> if active; otherwise, <c>false</c>.</value>
21
        bool Active { get; set; }
22
23
        /// <summary>
24
        /// Gets or sets the last ran.
25
        /// </summary>
26
        /// <value>The last ran.</value>
27
        DateTime? LastRan { get; set; }
28
29
        /// <summary>
30
        /// Gets or sets the id.
31
        /// </summary>
32
        /// <value>The id.</value>
33
        decimal? Id { get; set; }
34
35
        /// <summary>
36
        /// Runs this instance.
37
        /// </summary>
11
        void Run();
38
        void Run();
12
    }
39
    }
13
}
40
}