

{
ProgressorSource ps = new("Doing my thing...", false);
int numSecondsDelay = 5;
//If you run this in the DEBUGGER you will NOT see the dialog
QueuedTask.Run(() => Task.Delay(numSecondsDelay * 1000).Wait(), ps.Progressor);
}
System.Object
ArcGIS.Desktop.Framework.Threading.Tasks.Progressor
ArcGIS.Desktop.Framework.Threading.Tasks.CancelableProgressor
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)