Want to know about queued calculation status in AF SDK method for C#?
Want to check thr code.
I'm not sure what you are referring to. There no status for items in the recalculation queue, at least not to my knowledge. Items sit in the queue, they don't have a status...
Are you troubleshooting a particular issue? What are you trying to accomplish?
If any calculation in queue, wanted check status not by using AF. Want to use AF.SDK code.
Status as in if the request was processed? There is no status associated to an item in the queue and I don't believe we have programmatic access to query the AFAnalysis Service to see if a request was processed or no.
An alternative, the queue is actually just entries in this XML file: "%ProgramData%OSIsoft\PIAnalysisNotifications\RecalculationProcessor.RequestedRecalculations.xml"
You could read from the file to see if an item was processed.
NEVER write to the file though. If the file hash changes, the PI Analysis Service will pick that up and will discard any recalculation requests. This is for safety reasons..
Such information should be available in the Analysis namespace.
I wonder if one of the below information can work for you?
AFAnalysisService.QueryRuntimeInformation Method (String, String)
Retrieving data ...