HI,
I'm using the ArcGIS Pro SDK to develop plugins and the user specifies my workflow.
I'm a little confused about the use of the multithreaded model right now, and I'm sorry I'm not very familiar with it.
I know from the wiki that the ArcGIS Pro SDK has quite a few methods that need to be called from within the MCT process, that is, using QueuedTask.Run(). I also know from being in this section ProConcepts Framework · Esri/arcgis-pro-sdk Wiki (github.com) that there are some instructions about task canceling, but I'm still confused about task canceling.
Currently my referenced scenarios have to call methods in the MCT process, i.e. they have to be called in the QueuedTask, but some of the methods take a long time to execute and I want to be able to cancel them manually, but I've found that CancelableProgressorSource.Cancel() seems to be available only in the Cancel button of the interface, which I'm not so sure about.
I was wondering if esri could provide a definitive answer as to whether I can do a manual cancel via code for the specified executing MCT method? If so, could you provide some sample code?