ArcGIS Explorer SDK Feedback via the User Forum
Sample Tasks

Glossary Item Box

Long Running Task Sample

This sample illustrates how you can make use of the multithreaded architecture of ArcGIS Explorer to build custom tasks that run continuosly on a background thread, meaning the user interface remains responsive. This sample task creates a PlaceResult when the user stops navigating the globe for a period of time. Instead of creating a PlaceResult, you may wish to employ the same task architecture but query a webservice, database or other dynamic datasource.

Sample Overview

  • Implementation of a custom task that when started executes infinetly.
  • Example of setting task status messages.
  • Example of creating a PlaceResult.
  • Additional Requirements: None.

How to open the task:

  1. In Visual Studio 2005, open the solution and build it.
    NOTE: see the 'Building Samples' topic for more information about how the sample will be set up ready for you to use in ArcGIS Explorer by building the project.
  2. Open ArcGIS Explorer, and open a map in which you want to use the sample task.
  3. Click Tools, then Manage Tasks.
  4. In the 'All Available Tasks' list, select the task and click the arrow in the center of the dialog to add the task to your map; then click OK to dismiss the Manage Tasks dialog.
  5. In the task console, select the Application Info sample task.
  6. You should now find that the sample is the active task.
    Long Running Task sample as active task

How to use the task

  1. Click the start button, to start the task.
  2. Navigate the globe, pausing navigation from time to time for a period of 10 seconds.
  3. Examine the PlaceResults that are created each time you pause navigation.