<?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: Geoprocessor Tasks in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/geoprocessor-tasks/m-p/451117#M5490</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried the following?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="highlight-comment" style="color: #006633;"&gt;// Create a new LocalGeoprocessing service of synchronous execution type.&lt;/SPAN&gt;
LocalGeoprocessingService gpService
&amp;nbsp; = &lt;SPAN class="highlight-keyword" style="color: #0000ff;"&gt;new&lt;/SPAN&gt; LocalGeoprocessingService(&lt;SPAN class="highlight-literal" style="color: #cc0000;"&gt;"Path to geoprocessing package"&lt;/SPAN&gt;, GPServiceType.Execute, &lt;SPAN class="highlight-number" style="color: #009966;"&gt;1000000&lt;/SPAN&gt;);

gpService.StartAsync(delegateService =&amp;gt;
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; &lt;SPAN class="highlight-comment" style="color: #006633;"&gt;// Instantiate a new Geoprocessor task with the Url.&lt;/SPAN&gt;
&amp;nbsp; ESRI.ArcGIS.Client.Tasks.Geoprocessor geoprocessorTask
&amp;nbsp; = &lt;SPAN class="highlight-keyword" style="color: #0000ff;"&gt;new&lt;/SPAN&gt; ESRI.ArcGIS.Client.Tasks.Geoprocessor(gpService.Tasks[&lt;SPAN class="highlight-number" style="color: #009966;"&gt;0&lt;/SPAN&gt;].Url);
&amp;nbsp; });&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 20:08:18 GMT</pubDate>
    <dc:creator>FreddieGibson</dc:creator>
    <dc:date>2021-12-11T20:08:18Z</dc:date>
    <item>
      <title>Geoprocessor Tasks</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/geoprocessor-tasks/m-p/451116#M5489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the WPF Runtime, we had a geoprocessing tool that allowed the user to load their own custom geoprocessing packages. We create the geoprocessor basically as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d;"&gt;_service = await LocalGeoprocessingService.StartAsync(definition.Path, GeoprocessingServiceType.SubmitJobWithMapServerResult, &lt;SPAN style="line-height: 1.5; color: #4ec9b0;"&gt;30000&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5;"&gt;);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d;"&gt;var firstTask = _service.Tasks.FirstOrDefault();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d;"&gt;&lt;SPAN style="line-height: 1.5;"&gt;_geoprocessor &lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5;"&gt; &lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5;"&gt; &lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5;"&gt;Geoprocessor&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5;"&gt; &lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5;"&gt;Uri&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5;"&gt;(_service&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5;"&gt;UrlGeoprocessingService &lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5;"&gt; &lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5;"&gt;"/"&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5;"&gt; &lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5;"&gt; firstTask&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5;"&gt;DisplayName&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5;"&gt;));&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in the Runtime for .NET the Tasks collection is not available. We will never have the ability to hard code the task name like the examples all show. Is there any way to dynamically get the Task names from the server without having to scrape the html page or do something similarly obnoxious?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2015 19:07:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/geoprocessor-tasks/m-p/451116#M5489</guid>
      <dc:creator>ChristinaKochan1</dc:creator>
      <dc:date>2015-11-04T19:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessor Tasks</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/geoprocessor-tasks/m-p/451117#M5490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried the following?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="highlight-comment" style="color: #006633;"&gt;// Create a new LocalGeoprocessing service of synchronous execution type.&lt;/SPAN&gt;
LocalGeoprocessingService gpService
&amp;nbsp; = &lt;SPAN class="highlight-keyword" style="color: #0000ff;"&gt;new&lt;/SPAN&gt; LocalGeoprocessingService(&lt;SPAN class="highlight-literal" style="color: #cc0000;"&gt;"Path to geoprocessing package"&lt;/SPAN&gt;, GPServiceType.Execute, &lt;SPAN class="highlight-number" style="color: #009966;"&gt;1000000&lt;/SPAN&gt;);

gpService.StartAsync(delegateService =&amp;gt;
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; &lt;SPAN class="highlight-comment" style="color: #006633;"&gt;// Instantiate a new Geoprocessor task with the Url.&lt;/SPAN&gt;
&amp;nbsp; ESRI.ArcGIS.Client.Tasks.Geoprocessor geoprocessorTask
&amp;nbsp; = &lt;SPAN class="highlight-keyword" style="color: #0000ff;"&gt;new&lt;/SPAN&gt; ESRI.ArcGIS.Client.Tasks.Geoprocessor(gpService.Tasks[&lt;SPAN class="highlight-number" style="color: #009966;"&gt;0&lt;/SPAN&gt;].Url);
&amp;nbsp; });&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:08:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/geoprocessor-tasks/m-p/451117#M5490</guid>
      <dc:creator>FreddieGibson</dc:creator>
      <dc:date>2021-12-11T20:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessor Tasks</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/geoprocessor-tasks/m-p/451118#M5491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is how we used to get Tasks, but now in 10.2.6 the problem is that the Tasks collection no longer exists on the LocalGeoprocessingService. Your examples show to use the Tasks collection, but if you look at the &lt;A href="https://developers.arcgis.com/net/desktop/api-reference/html/Properties_T_Esri_ArcGISRuntime_LocalServices_LocalGeoprocessingService.htm"&gt;Properties &lt;/A&gt;of LocalGeoprocessingService, Tasks does not exist. The property cannot be resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/net/desktop/api-reference/html/T_Esri_ArcGISRuntime_LocalServices_LocalGeoprocessingService.htm" title="https://developers.arcgis.com/net/desktop/api-reference/html/T_Esri_ArcGISRuntime_LocalServices_LocalGeoprocessingService.htm"&gt;LocalGeoprocessingService Class&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 02:07:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/geoprocessor-tasks/m-p/451118#M5491</guid>
      <dc:creator>ChristinaKochan1</dc:creator>
      <dc:date>2015-11-05T02:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessor Tasks</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/geoprocessor-tasks/m-p/451119#M5492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I noticed the same thing yesterday, but I didn't get a chance to test it. I pulled the snippet I posted from the sample at the bottom of the following page:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Local Geoprocessing Service Class&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/net/desktop/api-reference//html/T_Esri_ArcGISRuntime_LocalServices_LocalGeoprocessingService.htm" title="https://developers.arcgis.com/net/desktop/api-reference//html/T_Esri_ArcGISRuntime_LocalServices_LocalGeoprocessingService.htm"&gt;https://developers.arcgis.com/net/desktop/api-reference//html/T_Esri_ArcGISRuntime_LocalServices_LocalGeoprocessingService.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just confirmed with development that the code shown at the bottom of the page isn't valid for .Net and we're putting in a request to get that corrected. I'll have to look a bit deeper into this to see if there is another avenue available to accomplish this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 18:03:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/geoprocessor-tasks/m-p/451119#M5492</guid>
      <dc:creator>FreddieGibson</dc:creator>
      <dc:date>2015-11-05T18:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessor Tasks</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/geoprocessor-tasks/m-p/451120#M5493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. Do you happen to know why the property was removed in .NET?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 19:24:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/geoprocessor-tasks/m-p/451120#M5493</guid>
      <dc:creator>ChristinaKochan1</dc:creator>
      <dc:date>2015-11-05T19:24:22Z</dc:date>
    </item>
  </channel>
</rss>

