/// <summary>
 ///     Initializes a new instance of the <see cref="RetryTask" /> class.
 /// </summary>
 /// <param name="task">The task.</param>
 /// <param name="traceSource">The trace source.</param>
 /// <param name="maxTryTime">The max try time.</param>
 /// <param name="maxTryCount">The max try count.</param>
 /// <param name="tryInterval">The try interval.</param>
 public RetryTask(Action task, TraceSource traceSource,
                  TimeSpan maxTryTime, int maxTryCount, TimeSpan tryInterval)
 {
     Task = new RetryTask <int>(task.MakeFunc <int>(), traceSource,
                                maxTryTime, maxTryCount, tryInterval);
 }
 /// <summary>
 ///     Initializes a new instance of the <see cref="RetryTask" /> class.
 /// </summary>
 /// <param name="task">The task.</param>
 /// <param name="traceSource">The trace source.</param>
 public RetryTask(Action task, TraceSource traceSource)
 {
     Task = new RetryTask <int>(task.MakeFunc <int>(), traceSource);
 }