internal ThreadWorker(ITransport transport, IPipeline pipeline, IPipelineInvoker pipelineInvoker, string workerName, ThreadWorkerSynchronizationContext threadWorkerSynchronizationContext, ParallelOperationsManager parallelOperationsManager) { Name = workerName; _transport = transport; _pipeline = pipeline; _pipelineInvoker = pipelineInvoker; _threadWorkerSynchronizationContext = threadWorkerSynchronizationContext; _parallelOperationsManager = parallelOperationsManager; _workerThread = new Thread(ThreadStart) { Name = workerName, IsBackground = true }; _workerThread.Start(); }
internal ThreadWorker(ITransport transport, IPipeline pipeline, IPipelineInvoker pipelineInvoker, string workerName, ThreadWorkerSynchronizationContext threadWorkerSynchronizationContext, ParallelOperationsManager parallelOperationsManager) { Name = workerName; _transport = transport; _pipeline = pipeline; _pipelineInvoker = pipelineInvoker; _threadWorkerSynchronizationContext = threadWorkerSynchronizationContext; _parallelOperationsManager = parallelOperationsManager; _workerThread = new Thread(ThreadStart) { Name = workerName, IsBackground = true }; _workerThread.Start(); }
internal ThreadWorker(ITransport transport, IPipeline pipeline, IPipelineInvoker pipelineInvoker, string workerName, ThreadWorkerSynchronizationContext threadWorkerSynchronizationContext, ParallelOperationsManager parallelOperationsManager, IBackoffStrategy backoffStrategy, IRebusLoggerFactory rebusLoggerFactory) { Name = workerName; _log = rebusLoggerFactory.GetCurrentClassLogger(); _transport = transport; _pipeline = pipeline; _pipelineInvoker = pipelineInvoker; _threadWorkerSynchronizationContext = threadWorkerSynchronizationContext; _parallelOperationsManager = parallelOperationsManager; _backoffStrategy = backoffStrategy; _workerThread = new Thread(ThreadStart) { Name = workerName, IsBackground = true }; _workerThread.Start(); }
internal ThreadWorker(ITransport transport, IPipeline pipeline, IPipelineInvoker pipelineInvoker, string workerName, ThreadWorkerSynchronizationContext threadWorkerSynchronizationContext, ParallelOperationsManager parallelOperationsManager, IBackoffStrategy backoffStrategy, IRebusLoggerFactory rebusLoggerFactory) { Name = workerName; _log = rebusLoggerFactory.GetCurrentClassLogger(); _transport = transport; _pipeline = pipeline; _pipelineInvoker = pipelineInvoker; _threadWorkerSynchronizationContext = threadWorkerSynchronizationContext; _parallelOperationsManager = parallelOperationsManager; _backoffStrategy = backoffStrategy; _workerThread = new Thread(ThreadStart) { Name = workerName, IsBackground = true, }; _workerThread.Start(); }