btcpayserver/BTCPayServer.Client/BTCPayServerClient.Health.cs

15 lines
389 B
C#
Raw Normal View History

using System.Net.Http;
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
2020-04-16 15:39:08 +02:00
{
public virtual async Task<ApiHealthData> GetHealth(CancellationToken token = default)
2020-04-16 15:39:08 +02:00
{
return await SendHttpRequest<ApiHealthData>("api/v1/health", null, HttpMethod.Get, token);
2020-04-16 15:39:08 +02:00
}
}