public static void TestCompensation(ProcessRunner pr) { var proc = pr.StartProcess("Test2.Compensation.1", new Dictionary <string, object> { }); Console.WriteLine("Enter to cancel the process {0}", proc); Console.ReadLine(); pr.CancelTask(proc, "Testing"); Console.WriteLine("Cancelling"); Console.ReadLine(); }