public EchoConsumerActor(ClusterNodeContext context)
        {
            _clusterContext = context;
            _clusterUniqueAddress = Cluster.Get(Context.System).SelfUniqueAddress;

            Receive<string>(m => OnMessage(m));
        }
Example #2
0
        public EchoConsumerActor(ClusterNodeContext context)
        {
            _clusterContext       = context;
            _clusterUniqueAddress = Cluster.Get(Context.System).SelfUniqueAddress;

            Receive <string>(m => OnMessage(m));
        }
        public EchoProducerActor(ClusterNodeContext context)
        {
            _clusterContext = context;

            Receive<ClusterActorDiscoveryMessage.ActorUp>(m => OnMessage(m));
            Receive<ClusterActorDiscoveryMessage.ActorDown>(m => OnMessage(m));
            Receive<string>(m => OnMessage(m));
        }
Example #4
0
        public EchoProducerActor(ClusterNodeContext context)
        {
            _clusterContext = context;

            Receive <ClusterActorDiscoveryMessage.ActorUp>(m => OnMessage(m));
            Receive <ClusterActorDiscoveryMessage.ActorDown>(m => OnMessage(m));
            Receive <string>(m => OnMessage(m));
        }