/// <summary> /// Initializes a new instance of the <see cref="AsyncRetryTask"/> 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 AsyncRetryTask(Func <Task> task, TraceSource traceSource, TimeSpan maxTryTime, int maxTryCount, TimeSpan tryInterval) { Task = new AsyncRetryTask <int>(task.MakeFunc <int>(), traceSource, maxTryTime, maxTryCount, tryInterval); }
/// <summary> /// Initializes a new instance of the <see cref="AsyncRetryTask"/> class. /// </summary> /// <param name="task">The task.</param> /// <param name="traceSource">The trace source.</param> public AsyncRetryTask(Func <Task> task, TraceSource traceSource) { Task = new AsyncRetryTask <int>(task.MakeFunc <int>(), traceSource); }