示例#1
0
 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();
     });
 }
示例#2
0
        protected override ActorBase CreateNewActorInstance()
        {
            RouterActor instance = _routerConfig.CreateRouterActor();

            return(instance);
        }