Akka.Remote.Routing.RemoteRouterConfig.NewRoutee C# (CSharp) Method

NewRoutee() public method

public NewRoutee ( Props routeeProps, IActorContext context ) : Routee
routeeProps Props
context IActorContext
return Akka.Routing.Routee
        public override Routee NewRoutee(Props routeeProps, IActorContext context)
        {
            _nodeAddrEnumerator.MoveNext();
            var name = "c" + _childNameCounter.GetAndIncrement();
            var deploy = new Deploy(routeeProps.RouterConfig, new RemoteScope(_nodeAddrEnumerator.Current));
            

            var actorRef = context.AsInstanceOf<ActorCell>()
                .AttachChild(Local.EnrichWithPoolDispatcher(routeeProps, context).WithDeploy(deploy), false, name);
            return new ActorRefRoutee(actorRef);
        }