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\.PrepareAsync\(CancellationToken\) Method Ensures the device is not disposed and the cancellation token is not cancelled\. ```csharp protected System.Threading.Tasks.Task PrepareAsync(System.Threading.CancellationToken ct); ``` #### Parameters `ct` [System\.Threading\.CancellationToken](https://learn.microsoft.com/en-us/dotnet/api/system.threading.cancellationtoken 'System\.Threading\.CancellationToken') The cancellation token\. #### 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\.