예제 #1
0
 static void plan_Progress(object sender, HandlerProgressCancelEventArgs e)
 {
     if (e.ActionName == "ac0.1.1" && e.Status == StatusType.Initializing)
     {
         plan.Pause();
         System.Threading.Thread.Sleep(5000);
         plan.Continue();
     }
     else if (e.ActionName == "ac0.1.2" && e.Status == StatusType.Initializing)
     {
         e.Cancel = true;
     }
     Console.WriteLine("ActionName: {0}, Context:{1}, Message:{2}", e.ActionName, e.Context, e.Message);
 }