Try your search with a different keyword or use * as a wildcard.
using Nop.Services.ScheduleTasks;
namespace Nop.Plugin.Tax.Avalara.Services;
///
/// Represents a schedule task to download tax rates
///
public class DownloadTaxRatesTask : IScheduleTask
{
#region Fields
protected readonly AvalaraTaxManager _avalaraTaxManager;
#endregion
#region Ctor
public DownloadTaxRatesTask(AvalaraTaxManager avalaraTaxManager)
{
_avalaraTaxManager = avalaraTaxManager;
}
#endregion
#region Methods
///
/// Execute task
///
/// A task that represents the asynchronous operation
public async Task ExecuteAsync()
{
await _avalaraTaxManager.DownloadTaxRatesAsync();
}
#endregion
}