コード例 #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
ファイル: RoutedActorCell.cs プロジェクト: zhanjian/akka.net
        protected override ActorBase CreateNewActorInstance()
        {
            RouterActor instance = _routerConfig.CreateRouterActor();

            return(instance);
        }