Example #1
0
        public void source_ref_must_be_correctly_sent_over_wire_even_if_enveloped_in_poco()
        {
            const string payload = "streamed data";

            var source        = ActorOf(ProducerActor.Props(payload), "source");
            var remoteAddress = ((ActorSystemImpl)Sys).Provider.DefaultAddress;

            var sinkActor = RemoteSystem.ActorOf(ConsumerActor.Props(source.Path.ToStringWithAddress(remoteAddress), _probe), "sink");

            sinkActor.Tell(new StartListening());

            _probe.ExpectMsg(payload);
        }
Example #2
0
        public void source_ref_must_be_correctly_sent_over_wire_even_if_enveloped_in_poco()
        {
            const string payload = "streamed data";

            var source        = ActorOf(ProducerActor.Props(payload), "source");
            var remoteAddress = ((ActorSystemImpl)Sys).Provider.DefaultAddress;

            var sinkActor = RemoteSystem.ActorOf(ConsumerActor.Props(source.Path.ToStringWithAddress(remoteAddress), _probe), "sink");

            sinkActor.Tell(new StartListening());

            // when running in Azure DevOps, greater timeout needed to ensure real Remoting has enough time to handle stuff
            _probe.ExpectMsg(payload, TimeSpan.FromSeconds(30));
        }