Allows operations to be executed with progress information.
Inheritance Hierarchy
DedicatedThreadAccessible
DedicatedThreadService
Spotfire.Dxp.Framework.ApplicationModel ProgressService
Namespace: Spotfire.Dxp.Framework.ApplicationModel
Assembly: Spotfire.Dxp.Framework (in Spotfire.Dxp.Framework.dll) Version: 14.10.7525.5058 (14.10.7525.5058)
Syntax
Remarks
This class cannot be extended through inheritance.
Examples
ProgressService progressService = GetService<ProgressService>(); progressService.ExecuteWithProgress("Opening File", "Task description", delegate { // Do some work // ... ProgressService.CurrentProgress.ExecuteSubtask( "Sub task", stepCount, "Step {0} of {1}", delegate { try { // Perform sub task for (int i = 0; i < stepCount; i++) { // Do something // ... ProgressService.CurrentProgress.TryReportProgress(); ProgressService.CurrentProgress.CheckCancel(); } } catch (CanceledException) { // Handle exception } finally { // Perform Cleanup } }); // Do more work // ... }
Version Information
See Also