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:
- 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. - Open ArcGIS Explorer, and open a map in which you want to use the sample task.
- Click Tools, then Manage Tasks.
- 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.
- In the task console, select the Application Info sample task.
- You should now find that the sample is the active task.

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