A type which handles preparing the underlying dispatcher or timer from which the test work items execute.
Inheritance: RunDispatcher
示例#1
0
        /// <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;
        }