Exemple #1
0
 public static void HandleCallback(ClosureValue callback, Int64?jobIdToCancel)
 {
     try
     {
         callback.interpret(ApplicationContext.Get());
     }
     finally
     {
         // gracefully dispose 1-time job timers (repeated jobs must call cancel)
         if (jobIdToCancel != null)
         {
             Timer timer;
             JOB_TIMERS.TryRemove((Int64)jobIdToCancel, out timer);
         }
     }
 }
Exemple #2
0
 public override IValue interpret(Context context)
 {
     return(method.interpret(context));
 }