protected Worker(IConnectionHandler connectionHandler, string workerType, ILogDispatcher logDispatcher) { ConnectionHandler = connectionHandler; WorkerType = workerType; WorkerId = connectionHandler.GetWorkerId(); Attributes = connectionHandler.GetWorkerAttributes(); LogDispatcher = logDispatcher; logDispatcher.Worker = this; logDispatcher.WorkerType = workerType; MessagesToSend = connectionHandler.GetMessagesToSendContainer(); }