Statistics
| Branch: | Revision:

root / trunk / hammock / src / net35 / Hammock / Tasks / ITaskOptions.cs @ 0eea575a

History | View | Annotate | Download (492 Bytes)

1
using System;
2

    
3
namespace Hammock.Tasks
4
{
5
    public interface ITaskOptions<T>
6
    {
7
        double? RateLimitPercent { get; set; }
8
        RateLimitType RateLimitType { get; }
9
        Predicate<T> RateLimitingPredicate { get; }
10
        Func<T> GetRateLimitStatus { get; }
11
    }
12

    
13
    public interface ITaskOptions
14
    {
15
        TimeSpan DueTime { get; set; }
16
        int RepeatTimes { get; set; }
17
        TimeSpan RepeatInterval { get; set; }
18
        bool ContinueOnError { get; set; }
19
    }
20
}