/// <summary> /// Create a new run method manager object. /// </summary> /// <param name="runNextStep"> /// Conditional indicating whether more work will remain after /// performing the work. /// </param> /// <returns> /// Returns the run method manager. Typically depends on the execution /// platform and environment. /// </returns> public static RunDispatcher Create(Func <bool> runNextStep) { RunDispatcher runMethodManager = #if SILVERLIGHT new WebBrowserTick(runNextStep); #else new RunDispatcher(runNextStep); #endif return(runMethodManager); }
/// <summary> /// Create a new run method manager object. /// </summary> /// <param name="runNextStep"> /// Conditional indicating whether more work will remain after /// performing the work. /// </param> /// <returns> /// Returns the run method manager. Typically depends on the execution /// platform and environment. /// </returns> public static RunDispatcher Create(Func<bool> runNextStep) { RunDispatcher runMethodManager = #if SILVERLIGHT new WebBrowserTick(runNextStep); #else new RunDispatcher(runNextStep); #endif return runMethodManager; }