using Nop.Services.ScheduleTasks; namespace Nop.Services.Common; /// /// Represents a task for keeping the site alive /// public partial class KeepAliveTask : IScheduleTask { #region Fields protected readonly StoreHttpClient _storeHttpClient; #endregion #region Ctor public KeepAliveTask(StoreHttpClient storeHttpClient) { _storeHttpClient = storeHttpClient; } #endregion #region Methods /// /// Executes a task /// public async System.Threading.Tasks.Task ExecuteAsync() { await _storeHttpClient.KeepAliveAsync(); } #endregion }