/// <summary> /// Creates a new worker with the given <paramref name="workerName"/> /// </summary> public IWorker CreateWorker(string workerName) { if (workerName == null) throw new ArgumentNullException(nameof(workerName)); var owningBus = _busGetter(); var worker = new ThreadPoolWorker(workerName, _transport, _rebusLoggerFactory, _pipeline, _pipelineInvoker, _parallelOperationsManager, owningBus, _options, _backoffStrategy); return worker; }
/// <summary> /// Creates a new worker with the given <paramref name="workerName"/> /// </summary> public IWorker CreateWorker(string workerName) { if (workerName == null) { throw new ArgumentNullException(nameof(workerName)); } var owningBus = _busGetter(); var worker = new ThreadPoolWorker(workerName, _transport, _rebusLoggerFactory, _pipelineInvoker, _parallelOperationsManager, owningBus, _options, _backoffStrategy); return(worker); }