Search code examples
async-awaitodatasimple.odata

How to cancel a request


I am using the Simple.OData.Client library, and I need to be able to cancel a request before it completes. None of the async methods accept a Cancelation-Token. Am I missing something?


Solution

  • I just pushed to NuGet Simple.OData.Client pre-release 3.0.0-rc2 that adds support for cancellation tokens, so you can try it or wait until the final 3.0 is released (in a couple of weeks).