using System; using System.Text; using System.Linq; using System.Drawing; using System.Diagnostics; using System.Windows.Forms; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Tango.PMR.Stubs; using Tango.Stubs; public void OnExecute(StubManager stubManager) { // Request ---- // Int32 : Amount // Int32 : Delay // Response ---- // Double : Progress ProgressRequest request = new ProgressRequest(); request.Amount = 100; request.Delay = 1; stubManager.RunContinuous(request, (response) => { stubManager.WriteLine(response.Progress); }); }