public override void NewActor() { //set the thread static context or things will break UseThreadContext(() => { behaviorStack.Clear(); RouterActor instance = routerConfig.CreateRouterActor(); instance.supervisorStrategy = Props.SupervisorStrategy; //defaults to null - won't affect lazy instantion unless explicitly set in props instance.AroundPreStart(); }); }
protected override ActorBase CreateNewActorInstance() { RouterActor instance = _routerConfig.CreateRouterActor(); return(instance); }