Ejemplo n.º 1
0
        protected RemoteDeliverySpec(RemoteDeliveryMultiNetSpec config) : base(config)
        {
            _config = config;

            _identify = (role, actorName) => Within(TimeSpan.FromSeconds(10), () =>
                {
                    Sys.ActorSelection(Node(role)/"user"/actorName)
                        .Tell(new Identify(actorName));
                    return ExpectMsg<ActorIdentity>()
                        .Subject;
                });
        }
Ejemplo n.º 2
0
        protected RemoteDeliverySpec(RemoteDeliveryMultiNetSpec config) : base(config)
        {
            _config = config;

            _identify = (role, actorName) => Within(TimeSpan.FromSeconds(10), () =>
            {
                Sys.ActorSelection(Node(role) / "user" / actorName)
                .Tell(new Identify(actorName));
                return(ExpectMsg <ActorIdentity>()
                       .Subject);
            });
        }