Пример #1
0
 internal void ProcessTimers()
 {
     using (new WorkflowTraceTransfer(this.InstanceId))
     {
         while (true)
         {
             WorkflowExecutor executor = null;
             try
             {
                 executor = _runtime.Load(this);
             }
             catch (InvalidOperationException)
             {
                 break;
             }
             if (executor != null && executor.IsInstanceValid)
             {
                 try
                 {
                     executor.DeliverTimerSubscriptions();
                     break;
                 }
                 catch (InvalidOperationException)
                 {
                     if (executor.IsInstanceValid)
                     {
                         throw;
                     }
                 }
             }
         }
     }
 }