Esempio n. 1
0
 public static void Schedule(Action <object> callback, object state, bool lowPriority)
 {
     if (!PartialTrustHelpers.ShouldFlowSecurityContext && !WaitCallbackActionItem.ShouldUseActivity)
     {
         ActionItem.ScheduleCallback(callback, state, lowPriority);
         return;
     }
     (new ActionItem.DefaultActionItem(callback, state, lowPriority)).Schedule();
 }
Esempio n. 2
0
 private void ScheduleCallback(Action <object> callback)
 {
     ActionItem.ScheduleCallback(callback, this, this.lowPriority);
 }