2020-06-29 04:44:35 +02:00
|
|
|
using System;
|
2019-03-05 09:09:17 +01:00
|
|
|
using System.Threading;
|
2018-08-22 17:24:33 +02:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
2020-01-17 10:11:05 +01:00
|
|
|
public Task<PairRate[]> GetRatesAsync(CancellationToken cancellationToken)
|
2018-08-22 17:24:33 +02:00
|
|
|
{
|
2020-01-17 10:11:05 +01:00
|
|
|
return Task.FromResult(Array.Empty<PairRate>());
|
2018-08-22 17:24:33 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|