ArcGIS Runtime SDK for WPF - Library Reference
GPServiceType Enumeration
See Also 
ESRI.ArcGIS.Client.Local Namespace : GPServiceType Enumeration

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

Syntax

Visual Basic (Declaration) 
Public Enum GPServiceType 
   Inherits System.Enum
C# 
public enum GPServiceType : System.Enum 

Remarks

When creating LocalGeoprocessingServices to run Geoprocessing tools and models you must choose whether that service will run synchronously (Execute), asynchronously (SubmitJob) or asynchronously with an dedicated LocalMapService instance to draw the result (SubmitJobWithMapServerResult). 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.

The Geoprocessor Task has methods which correspond to the execution type selected when creating the LocalGeoprocessingService:

Members

MemberDescription
ExecuteThe service will execute tasks synchronously on the LocalServer.
SubmitJobThe service will run tasks asynchronously on the LocalServer.
SubmitJobWithMapServerResultThe service will run tasks asynchronously, a job id is used to poll for progress.

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         ESRI.ArcGIS.Client.Local.GPServiceType

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8

See Also

© ESRI, Inc. All Rights Reserved.