<?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: Corehost Licensing &amp; QueuedWorker.Run vs. QueuedTask.Run  in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/corehost-licensing-queuedworker-run-vs-queuedtask/m-p/793542#M1690</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) The main issue is that you cannot run a CoreHost exe without installing Pro. You can, however, configure a license for Pro via the installer command line so you never have to actually "run" Pro. Refer to&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/get-started/arcgis-pro-installation-administration.htm#GUID-3BC34488-228D-4D37-8F96-6206CCA7539F"&gt;ArcGIS Pro installation command line parameters&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) You could probably get away with using &lt;SPAN style="background-color: #ffffff;"&gt;QueuedWorker.Run in your unit test harness for utility methods and the like that use only&amp;nbsp;&lt;/SPAN&gt;Geodatabase (and Geometry) code. For example, you have a helper library that you include in add-ins and a CoreHost app and you want to test that. However, you cannot use QueuedWorker in an Add-in nor QueuedTask in CoreHost. To the outside world they seem to perform a v. similar purpose but internally what they have to accomplish is completely different. [note: ArcGIS.Desktop.Framework.dll is not supported for use in CoreHost so QueuedTask's use in CoreHost is actually moot].&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jan 2019 22:48:29 GMT</pubDate>
    <dc:creator>CharlesMacleod</dc:creator>
    <dc:date>2019-01-24T22:48:29Z</dc:date>
    <item>
      <title>Corehost Licensing &amp; QueuedWorker.Run vs. QueuedTask.Run</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/corehost-licensing-queuedworker-run-vs-queuedtask/m-p/793541#M1689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;We're trying to write unit tests for an ArcGIS Pro Add-In.&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;1) Is there a way to get an ArcGIS Pro license for accessing &lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/proconcepts-CoreHost"&gt;ArcGIS.Core.Hosting.Host&lt;/A&gt; without installing Pro on our build server?&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;For example, by copying the infomation that points Pro to the concurrent license server or single use license?&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;2) When our code must be run in a separate thread, there are two methods for doing it: QueuedWorker.Run (for freestanding CoreHost applications) and QueuedTask.Run (for ArcGIS Pro Add-Ins).&amp;nbsp; When running unit tests against that code, how do we tell it which one to use?&amp;nbsp; We'd like to use the same code in both the unit test and the Add-In.&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;I've seen this comment, which helps, but doesn’t quite answer the question above: &lt;A _jive_internal="true" href="https://community.esri.com/thread/164535#comment-546949"&gt;&lt;SPAN style="text-decoration: underline;"&gt;https://community.esri.com/thread/164535#comment-546949&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;Thanks much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2018 23:14:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/corehost-licensing-queuedworker-run-vs-queuedtask/m-p/793541#M1689</guid>
      <dc:creator>Justin_ODell</dc:creator>
      <dc:date>2018-12-10T23:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Corehost Licensing &amp; QueuedWorker.Run vs. QueuedTask.Run</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/corehost-licensing-queuedworker-run-vs-queuedtask/m-p/793542#M1690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) The main issue is that you cannot run a CoreHost exe without installing Pro. You can, however, configure a license for Pro via the installer command line so you never have to actually "run" Pro. Refer to&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/get-started/arcgis-pro-installation-administration.htm#GUID-3BC34488-228D-4D37-8F96-6206CCA7539F"&gt;ArcGIS Pro installation command line parameters&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) You could probably get away with using &lt;SPAN style="background-color: #ffffff;"&gt;QueuedWorker.Run in your unit test harness for utility methods and the like that use only&amp;nbsp;&lt;/SPAN&gt;Geodatabase (and Geometry) code. For example, you have a helper library that you include in add-ins and a CoreHost app and you want to test that. However, you cannot use QueuedWorker in an Add-in nor QueuedTask in CoreHost. To the outside world they seem to perform a v. similar purpose but internally what they have to accomplish is completely different. [note: ArcGIS.Desktop.Framework.dll is not supported for use in CoreHost so QueuedTask's use in CoreHost is actually moot].&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2019 22:48:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/corehost-licensing-queuedworker-run-vs-queuedtask/m-p/793542#M1690</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2019-01-24T22:48:29Z</dc:date>
    </item>
  </channel>
</rss>

