Select to view content in your preferred language

Geoprocessor CheckJobStatusAsync  jobId value

606
2
09-16-2011 12:21 AM
JudyTroutwine
Regular Contributor
I want to use the Geoprocessor method CheckJobStatusAsync

This is described at

http://resources.esri.com/help/9.3/arcgisserver/apis/silverlight/help/GP_task.htm

However I do not see how to obtain the jobId value to use in this line:

geoprocessorTask.CheckJobStatusAsync(jobID);

Could someone please provide a tip on locating the jobID value to pass to the method?
0 Kudos
2 Replies
DominiqueBroux
Esri Frequent Contributor
You can subscribe to the StatusUpdated event.
The JobInfo structure will give you the JobID.
0 Kudos
KirkKuykendall
Deactivated User
If you're running a really long job you might want to persist the jobId somewhere (like in a simple webservice or isolated storage).  That way a user can check the status of a job after closing and re-opening their browser.
0 Kudos