<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Cancel geoprocessing running from Dockpane in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/cancel-geoprocessing-running-from-dockpane/m-p/1128562#M7532</link>
    <description>&lt;P&gt;Hi Stephen&lt;/P&gt;&lt;P&gt;I will give it a try (it will take some time). I could not find an example for GP tool but I understand the concept.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 23 Dec 2021 06:04:49 GMT</pubDate>
    <dc:creator>mody_buchbinder</dc:creator>
    <dc:date>2021-12-23T06:04:49Z</dc:date>
    <item>
      <title>Cancel geoprocessing running from Dockpane</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/cancel-geoprocessing-running-from-dockpane/m-p/1128239#M7522</link>
      <description>&lt;P&gt;I am running a GP tool that takes some time from a button on Dockpane.&lt;/P&gt;&lt;P&gt;If the user close the Dockpane with the X (or any cancel button) I would like the GP tool to be canceled.&lt;/P&gt;&lt;P&gt;I still would like to use GPThread flag (or any other way that does not block the application)&lt;/P&gt;&lt;P&gt;What will be the best way to do it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Happy holidays &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 06:13:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/cancel-geoprocessing-running-from-dockpane/m-p/1128239#M7522</guid>
      <dc:creator>mody_buchbinder</dc:creator>
      <dc:date>2021-12-22T06:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Cancel geoprocessing running from Dockpane</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/cancel-geoprocessing-running-from-dockpane/m-p/1128337#M7525</link>
      <description>&lt;P&gt;Using the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/#topic9384.html" target="_self"&gt;ExecuteToolAsync overload with a CancellationToken&lt;/A&gt; is the way to go. If you create a CancellationTokenSource scoped to the DockPane and override the DockPane's OnHidden method, you can call Cancel on the CancellationTokenSource object if the GP tool hasn't finished.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 16:03:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/cancel-geoprocessing-running-from-dockpane/m-p/1128337#M7525</guid>
      <dc:creator>tempStephenRhea_NV5</dc:creator>
      <dc:date>2021-12-22T16:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Cancel geoprocessing running from Dockpane</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/cancel-geoprocessing-running-from-dockpane/m-p/1128562#M7532</link>
      <description>&lt;P&gt;Hi Stephen&lt;/P&gt;&lt;P&gt;I will give it a try (it will take some time). I could not find an example for GP tool but I understand the concept.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 06:04:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/cancel-geoprocessing-running-from-dockpane/m-p/1128562#M7532</guid>
      <dc:creator>mody_buchbinder</dc:creator>
      <dc:date>2021-12-23T06:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Cancel geoprocessing running from Dockpane</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/cancel-geoprocessing-running-from-dockpane/m-p/1494920#M11707</link>
      <description>&lt;P&gt;Does this also work with the current Dockpane version? is there somewhere a code example? (I tried it, no errors, but it didnt have any effect...)&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 13:32:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/cancel-geoprocessing-running-from-dockpane/m-p/1494920#M11707</guid>
      <dc:creator>nadja</dc:creator>
      <dc:date>2024-06-19T13:32:59Z</dc:date>
    </item>
  </channel>
</rss>

