Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

KeepAliveTask.cs

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
}