mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 09:54:30 +01:00
31 lines
758 B
C#
31 lines
758 B
C#
using System;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using BTCPayServer.Rating;
|
|
|
|
namespace BTCPayServer.Services.Rates
|
|
{
|
|
public class NullRateProvider : IRateProvider
|
|
{
|
|
private NullRateProvider()
|
|
{
|
|
|
|
}
|
|
private static readonly NullRateProvider _Instance = new NullRateProvider();
|
|
public static NullRateProvider Instance
|
|
{
|
|
get
|
|
{
|
|
return _Instance;
|
|
}
|
|
}
|
|
|
|
public RateSourceInfo RateSourceInfo => new RateSourceInfo("NULL", "NULL", "https://NULL.NULL");
|
|
|
|
public Task<PairRate[]> GetRatesAsync(CancellationToken cancellationToken)
|
|
{
|
|
return Task.FromResult(Array.Empty<PairRate>());
|
|
}
|
|
}
|
|
}
|