btcpayserver/BTCPayServer.Client/BTCPayServerClient.Health.cs

16 lines
458 B
C#
Raw Normal View History

2020-04-16 15:39:08 +02:00
using System.Threading;
using System.Threading.Tasks;
using BTCPayServer.Client.Models;
2020-04-16 15:39:08 +02:00
namespace BTCPayServer.Client
{
public partial class BTCPayServerClient
{
public virtual async Task<ApiHealthData> GetHealth(CancellationToken token = default)
2020-04-16 15:39:08 +02:00
{
var response = await _httpClient.SendAsync(CreateHttpRequest("api/v1/health"), token);
return await HandleResponse<ApiHealthData>(response);
2020-04-16 15:39:08 +02:00
}
}
}