PosSharp v1.2.0 API Reference
---
#### [PosSharp\.Core](PosSharp.Core 'PosSharp\.Core')
### [PosSharp\.Core](PosSharp.Core 'PosSharp\.Core').[UposDeviceBase](PosSharp.Core.UposDeviceBase 'PosSharp\.Core\.UposDeviceBase')
## UposDeviceBase\.CheckHealthAsync\(HealthCheckLevel, CancellationToken\) Method
Tests the health of the device\.
```csharp
public System.Threading.Tasks.Task CheckHealthAsync(PosSharp.Abstractions.HealthCheckLevel level, System.Threading.CancellationToken ct=default(System.Threading.CancellationToken));
```
#### Parameters
`level` [PosSharp\.Abstractions\.HealthCheckLevel](https://learn.microsoft.com/en-us/dotnet/api/possharp.abstractions.healthchecklevel 'PosSharp\.Abstractions\.HealthCheckLevel')
The level of health check to perform\.
`ct` [System\.Threading\.CancellationToken](https://learn.microsoft.com/en-us/dotnet/api/system.threading.cancellationtoken 'System\.Threading\.CancellationToken')
A token to cancel the operation\.
Implements [CheckHealthAsync\(HealthCheckLevel, CancellationToken\)](https://learn.microsoft.com/en-us/dotnet/api/possharp.abstractions.iuposdevice.checkhealthasync#possharp-abstractions-iuposdevice-checkhealthasync(possharp-abstractions-healthchecklevel-system-threading-cancellationtoken) 'PosSharp\.Abstractions\.IUposDevice\.CheckHealthAsync\(PosSharp\.Abstractions\.HealthCheckLevel,System\.Threading\.CancellationToken\)')
#### Returns
[System\.Threading\.Tasks\.Task](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task 'System\.Threading\.Tasks\.Task')
A task representing the asynchronous operation\.