Page History
...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
using (ActorSystem actorSystem = ActorSystem.Create("ServiceB")) { //자신이 가진액터가 아닌, 원격지의 액터 선택이기 때문에 ActorSelection 을 사용합니다. IActorRef myActor ActorSelection otherActor = actorSystem.ActorSelection("akka.tcp://ServiceA@127.0.0.1:8001/user/myactor"); myActorotherActor.Tell("Hello"); //콘솔 종료 방지 코드 생략... } //동일 컴퓨터이니 ServiceB의 설정포트를 8002로 변경 |
...