Ejemplo n.º 1
0
        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();
        }