コード例 #1
0
        /// <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;
        }
コード例 #2
0
        /// <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);
        }