Show / Hide Table of Contents

Enum GeoprocessingServiceType

The GeoprocessingServiceType enumeration contains values which are used to determine how a LocalGeoprocessingService will run.

Namespace: Esri.ArcGISRuntime.LocalServices
Assembly: Esri.ArcGISRuntime.LocalServices.dll
Syntax
public enum GeoprocessingServiceType
Remarks

When creating LocalGeoprocessingServices to run Geoprocessing tools and models you must choose whether that service will run synchronously (SynchronousExecute), asynchronously (AsynchronousSubmit) or asynchronously with an dedicated LocalMapService instance to draw the result (AsynchronousSubmitWithMapServiceResult). The synchronous Execute option should be chosen if the tool will take less than 15 seconds to complete but for larger and more complex tools which take longer than 15 seconds it is recommended that the asynchronous SubmitJob option is used. The synchronous Execute option will result in a single RuntimeLocalServer.exe worker process being created to perform the work (in addition to the primary RuntimeLocalServer process) whereas the asynchronous SubmitJob option will result in two RuntimeLocalServer.exe processes, one to undertake the actual processing and one to monitor the processing. Lastly, the asynchronous option with a map server result produces three RuntimeLocalServer.exe processes where the third one is a LocalMapService instance employed to render the results of the Geoprocessing operation. Once the LocalGeoprocessingService has started the setting becomes read-only for the lifetime of that service and cannot be changed once the service is running.

Fields

Name Description
AsynchronousSubmit

The service will run tasks asynchronously on the LocalServer.

A job id is used to poll for progress of asynchronous tasks. The Geoprocessor.SubmitJobAsync method is typically used to initiate tasks in this service.

AsynchronousSubmitWithMapServiceResult

The service will run tasks asynchronously, a job id is used to poll for progress.

The Geoprocessor.SubmitJobAsync method is typically used to initiate tasks in this service. A result of a task can be displayed as a layer in a map using the GPResultImageLayer class.

SynchronousExecute

The service will execute tasks synchronously on the LocalServer.

Use this for tasks that run quickly (approx 15 seconds). The Geoprocessor.ExecuteAsync method is typically used to initiate tasks in this service.

Applies to

TargetVersions
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.0 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
In This Article
Back to top Copyright © 2022 Esri.