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(); }); }
/// <summary> /// TBD /// </summary> protected override ActorBase CreateNewActorInstance() { RouterActor instance = RouterConfig.CreateRouterActor(); return(instance); }