Esempio n. 1
0
 public DateTime GetWorkflowNextTimerExpiration()
 {
     while (true)
     {
         WorkflowExecutor executor = _runtime.Load(this);
         if (executor.IsInstanceValid)
         {
             try
             {
                 return(executor.GetWorkflowNextTimerExpiration());
             }
             catch (InvalidOperationException)
             {
                 if (executor.IsInstanceValid)
                 {
                     throw;
                 }
             }
         }
     }
 }