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"); }
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); }
private void InitializeWorker(string workerName) { ITaskExecuter clientExecuter = new ClientTaskExecuter(); _taskWorker = Context.ActorOf(Props.Create <WorkerActor>(clientExecuter), workerName); }