public WorkerThread(IWork work, IPrewait prewait) { if (prewait == null) { throw new ArgumentNullException(nameof(prewait)); } _work = work; _prewait = prewait; _handlerThread = new Thread(ExecuteScenarioThreadFunction); }
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; }