using System.Threading; using System.Threading.Tasks; using BTCPayServer.Client.Models; namespace BTCPayServer.Client { public partial class BTCPayServerClient { public virtual async Task GetHealth(CancellationToken token = default) { var response = await _httpClient.SendAsync(CreateHttpRequest("api/v1/health"), token); return await HandleResponse(response); } } }