示例#1
0
        protected override void PreStart()
        {
            ColorConsole.WriteLineBlue("Cordinator{0}'s PreStart called.", Self.Path.Name);

            //_taskWorker = Context.ActorOf(Context.DI().Props<WorkerActor>(),
            //    ActorPaths.WorkerActor.Name);

            ITaskExecuter clientExecuter = new ClientTaskExecuter();

            _taskWorker = Context.ActorOf(Props.Create <WorkerActor>(clientExecuter), "worker");
        }
示例#2
0
        protected override void PreStart()
        {
            _logger.Debug("Cordinator{0}'s PreStart called.", Self.Path.Name);

            //_taskWorker = Context.ActorOf(Context.DI().Props<WorkerActor>(),
            //    ActorPaths.WorkerActor.Name);

            // without Ninject
            ITaskExecuter clientExecuter = new ClientTaskExecuter();

            _taskWorker = Context.ActorOf(Props.Create <WorkerActor>(clientExecuter),
                                          ActorPaths.WorkerActor.Name);
        }
示例#3
0
        private void InitializeWorker(string workerName)
        {
            ITaskExecuter clientExecuter = new ClientTaskExecuter();

            _taskWorker = Context.ActorOf(Props.Create <WorkerActor>(clientExecuter), workerName);
        }