Files
parr_api/PARR.BLL/Services/Interfaces/IIntervalService.cs

15 lines
553 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace PARR.BLL.Services.Interfaces
{
public delegate Task IntervalHandlerDelegate();
public interface IIntervalService
{
/// <summary>
/// Метод выполняется с интервалом
/// </summary>
/// <param name="intervalHandler">Метод который нужно выполнить</param>
/// <param name="interval">Интервал</param>
/// <returns></returns>
Task IntervalInitAsync(IntervalHandlerDelegate intervalHandler, TimeSpan interval);
}
}