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\.OnCloseAsync\(CancellationToken\) Method Called by [CloseAsync\(CancellationToken\)](PosSharp.Core.UposDeviceBase.CloseAsync(System.Threading.CancellationToken).md 'PosSharp\.Core\.UposDeviceBase\.CloseAsync\(System\.Threading\.CancellationToken\)') to perform device\-specific close logic\. ```csharp protected abstract System.Threading.Tasks.Task OnCloseAsync(System.Threading.CancellationToken ct); ``` #### Parameters `ct` [System\.Threading\.CancellationToken](https://learn.microsoft.com/en-us/dotnet/api/system.threading.cancellationtoken 'System\.Threading\.CancellationToken') 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\.