static void ScheduleCallback(Action <object> callback, object state, bool lowPriority) { Fx.Assert(callback != null, "Cannot schedule a null callback"); if (lowPriority) { IOThreadScheduler.ScheduleCallbackLowPriNoFlow(callback, state); } else { IOThreadScheduler.ScheduleCallbackNoFlow(callback, state); } }
public override void Post(SendOrPostCallback d, object state) { IOThreadScheduler.ScheduleCallbackNoFlow( (s) => { d(s); }, state); }