public CallbackInfo(WorkflowSchedulerService service, WaitCallback callback, object state, DateTime when)
 {
     this.service = service;
     this.callback = callback;
     this.state = state;
     this.when = when;
 }
 public void Invoke(WorkflowSchedulerService service)
 {
     try
     {
         WorkflowTrace.Host.TraceEvent(TraceEventType.Information, 0, "Running workflow {0}", new object[] { this.state });
         this.Callback(this.state);
     }
     catch (Exception exception)
     {
         if (WorkflowExecutor.IsIrrecoverableException(exception))
         {
             throw;
         }
         service.RaiseExceptionNotHandledEvent(exception, (Guid) this.state);
     }
 }
 public void Invoke(WorkflowSchedulerService service)
 {
     try
     {
         WorkflowTrace.Host.TraceEvent(TraceEventType.Information, 0, "Running workflow {0}", state);
         Callback(state);
     }
     catch (Exception e)
     {
         if (WorkflowExecutor.IsIrrecoverableException(e))
         {
             throw;
         }
         else
         {
             service.RaiseExceptionNotHandledEvent(e, (Guid)state);
         }
     }
 }