mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 06:21:44 +01:00
22 lines
648 B
C#
22 lines
648 B
C#
|
using System.Threading;
|
||
|
using System.Threading.Tasks;
|
||
|
using BTCPayServer.Abstractions.Contracts;
|
||
|
using BTCPayServer.Services.Rates;
|
||
|
|
||
|
namespace BTCPayServer.Hosting
|
||
|
{
|
||
|
public class LoadCurrencyNameTableStartupTask : IStartupTask
|
||
|
{
|
||
|
private readonly CurrencyNameTable _currencyNameTable;
|
||
|
|
||
|
public LoadCurrencyNameTableStartupTask(CurrencyNameTable currencyNameTable)
|
||
|
{
|
||
|
_currencyNameTable = currencyNameTable;
|
||
|
}
|
||
|
public async Task ExecuteAsync(CancellationToken cancellationToken = default)
|
||
|
{
|
||
|
await _currencyNameTable.ReloadCurrencyData(cancellationToken);
|
||
|
}
|
||
|
}
|
||
|
}
|