Anyone tried implementing PIPoint.UpdateValuesAsync method ? Would like to know what is the best way to utilize it.
There is not much of information provided in AFSDK Help on Async methods implementation.
There is a nice example of the async methods in the GitHub referenced here: TechCon 2016 - Advanced Programming with PI AF SDK , look at the solution for example 4. Although this is for a read, the idea is the same: do the call using return await in an async method.
Somehow i can't find the many other webinars on AFSDK at this moment. Just let us know if you need more.
There is an example for AFData.UpdateValues in AFSDK.chm, where the signature and usage are equivalent to PIPoint.UpdateValues.
In terms of the async portion, as Roger mentioned, it's the same standard async/await pattern, where the result (AFErrors<AFValue>) is wrapped in Task.Result.
This blog post should help you.
Async with PI AF SDK: Introduction
Retrieving data ...