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(); }
private void ScheduleCallback(Action <object> callback) { ActionItem.ScheduleCallback(callback, this, this.lowPriority); }