示例#1
0
        public WorkerThread(IWork work, IPrewait prewait)
        {
            if (prewait == null)
            {
                throw new ArgumentNullException(nameof(prewait));
            }
            _work    = work;
            _prewait = prewait;

            _handlerThread = new Thread(ExecuteScenarioThreadFunction);
        }
示例#2
0
        public ThreadFactory(IPrewait prewait, IErrorHandler errorHandler)
        {
            if (prewait == null)
            {
                throw new ArgumentNullException(nameof(prewait));
            }
            if (errorHandler == null)
            {
                throw new ArgumentNullException(nameof(errorHandler));
            }

            _prewait      = prewait;
            _errorHandler = errorHandler;
        }