PosSharp v1.2.0 API Reference
---
#### [PosSharp\.Abstractions](PosSharp.Abstractions 'PosSharp\.Abstractions')
### [PosSharp\.Abstractions](PosSharp.Abstractions 'PosSharp\.Abstractions').[IUposDevice](PosSharp.Abstractions.IUposDevice 'PosSharp\.Abstractions\.IUposDevice')
## IUposDevice\.CheckHealthAsync\(HealthCheckLevel, CancellationToken\) Method
Tests the health of the device\.
```csharp
System.Threading.Tasks.Task CheckHealthAsync(PosSharp.Abstractions.HealthCheckLevel level, System.Threading.CancellationToken ct=default(System.Threading.CancellationToken));
```
#### Parameters
`level` [HealthCheckLevel](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\.
#### 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\.